API Optimizations

- Support Wire::end() for Slave
- Prevent Master operations when in Slave mode
This commit is contained in:
me-no-dev
2021-10-11 14:46:31 +03:00
parent 951c32056a
commit b145e65975
4 changed files with 206 additions and 155 deletions

View File

@ -67,6 +67,7 @@ private:
void (*user_onReceive)(int);
static void onRequestService(uint8_t, void *);
static void onReceiveService(uint8_t, uint8_t*, size_t, bool, void *);
bool initPins(int sdaPin, int sclPin);
public:
TwoWire(uint8_t bus_num);