Skip to content

Allow customization of transmit and receive buffer sizes for I2C 'Wire' object. #589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use override specifier in Wire.h
  • Loading branch information
dac1e committed Jan 3, 2025
commit b9df583c3576329ad0a2d21413440001dc82a1ec
12 changes: 6 additions & 6 deletions libraries/Wire/src/Wire.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ class TwoWire : public Stream
return requestFrom(static_cast<uint8_t>(address), static_cast<uint8_t>(quantity),
static_cast<uint8_t>(sendStop));
}
virtual size_t write(uint8_t);
virtual size_t write(const uint8_t *, size_t);
virtual int available(void);
virtual int read(void);
virtual int peek(void);
virtual void flush(void);
size_t write(uint8_t) override;
size_t write(const uint8_t *, size_t) override;
int available(void) override;
int read(void) override;
int peek(void) override;
void flush(void) override;
void onReceive( void (*)(int) );
void onRequest( void (*)(void) );

Expand Down
Loading