File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,10 @@ class sfeTkArdI2C : public sfeTkII2C
138
138
// /
139
139
virtual int readRegisterRegion (uint8_t devReg, uint8_t *data, size_t numBytes);
140
140
141
- private:
141
+ protected:
142
+ // note: The wire port is protected, allowing access if a sub-class is
143
+ // created to implement a special read/write routine
144
+ //
142
145
// The actual Arduino i2c port
143
146
TwoWire *_i2cPort;
144
147
};
Original file line number Diff line number Diff line change @@ -128,7 +128,11 @@ class sfeTkArdSPI : public sfeTkISPI
128
128
// /
129
129
virtual int readRegisterRegion (uint8_t reg, uint8_t *data, size_t numBytes);
130
130
131
- private:
131
+ protected:
132
+ // note: The instance data is protected, allowing access if a sub-class is
133
+ // created to implement a special read/write routine
134
+ //
135
+
132
136
SPIClass *_spiPort;
133
137
134
138
// Settings are used for every transaction.
You can’t perform that action at this time.
0 commit comments