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

Merge I2C time stretch utility from ESP8266 Community Core #84

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rkinnett
Copy link

@rkinnett rkinnett commented May 11, 2017

This isn't a full merge of the latest esp8266 core, just essential pieces to implement i2c time stretch. Tested with an Oak and three i2c devices (128x64 oled display, 16ch servo driver, and BNO055 inertial measurement unit). The time stretch component of i2c was required for the BNO device but was missing from the latest Oak core.

Adds prototypes for setClockStretchLimit() and status() to TwoWire class.  Wraps final TwoWire wire declaration in preexistance conditional
Added definitions for TwoWire::status() and TwoWire::setClockStretchLimit(), wrap TwoWire declaration in preexistance check
Defines twi_setClockStretch() and updates time stretch calculations as multiplier;  defines twi_status().
Adds prototypes for twi_setClockStretchLimit() and twi_status(), adds I2C macros
@rkinnett rkinnett changed the title Pulled time stretch utility from ESP8266 Community Core Merged I2C time stretch utility from ESP8266 Community Core May 11, 2017
@rkinnett rkinnett changed the title Merged I2C time stretch utility from ESP8266 Community Core Merge I2C time stretch utility from ESP8266 Community Core May 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant