@@ -116,7 +116,7 @@ class TwoWire : public ObservableDataStream {
116
116
// https://www.arduino.cc/en/Reference/WireRequestFrom
117
117
// Used by the master to request bytes from a slave device. The bytes may then
118
118
// be retrieved with the available() and read() functions.
119
- uint8_t requestFrom (uint8_t address, size_t quantity, bool stop) {
119
+ uint8_t requestFrom (uint8_t address, uint8_t quantity, uint32_t _iaddress, uint8_t _isize, uint8_t stop) {
120
120
assert (_didBegin);
121
121
assert (address > 0 && address < SLAVE_COUNT);
122
122
assert (quantity <= BUFFER_LENGTH);
@@ -131,11 +131,20 @@ class TwoWire : public ObservableDataStream {
131
131
return 0 ;
132
132
}
133
133
}
134
+
135
+ uint8_t requestFrom (uint8_t address, uint8_t quantity, uint8_t stop) {
136
+ return requestFrom ((uint8_t )address, (uint8_t )quantity, (uint32_t )0 , (uint8_t )0 , (uint8_t )stop);
137
+ }
138
+
139
+ uint8_t requestFrom (uint8_t address, uint8_t quantity) {
140
+ return requestFrom ((uint8_t )address, (uint8_t )quantity, (uint8_t )true );
141
+ }
142
+
134
143
uint8_t requestFrom (int address, int quantity) {
135
- return requestFrom ((uint8_t )address, (size_t )quantity, true );
144
+ return requestFrom ((uint8_t )address, (uint8_t )quantity, ( uint8_t ) true );
136
145
}
137
146
uint8_t requestFrom (int address, int quantity, int stop) {
138
- return requestFrom ((uint8_t )address, (size_t )quantity, (bool )stop);
147
+ return requestFrom ((uint8_t )address, (uint8_t )quantity, (uint8_t )stop);
139
148
}
140
149
141
150
// https://www.arduino.cc/en/Reference/WireWrite
0 commit comments