Skip to content
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

Add support for "repeated start" as defined by I2C protocol. #5

Closed
Andy4495 opened this issue May 14, 2021 · 2 comments
Closed

Add support for "repeated start" as defined by I2C protocol. #5

Andy4495 opened this issue May 14, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Andy4495
Copy link
Owner

Library currently does not contain high-level support for "repeated start" signaling.

@Andy4495 Andy4495 self-assigned this May 14, 2021
@Andy4495 Andy4495 added the enhancement New feature or request label May 14, 2021
@Andy4495
Copy link
Owner Author

Andy4495 commented Sep 7, 2021

In the six routines that send a stopBit() at the end, add an optional last parameter type bool for repeated_start where the default is false. Check repeated_start: If false, call stopBit(), if true do nothing (i.e., don't send stopBit()).

@Andy4495
Copy link
Owner Author

Update from previous comment: There are a total of nine methods that need to be updated. Also, in order to keep the behavior similar to the Arduino Wire library, use an optional parameter called stop_bit which defaults to true, which is the normal case where a stop bit is sent at the end of the message and releases the bus. If stop_bit is set to false then don't send a stop bit, which keeps the controller active on the bus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

1 participant