-
Notifications
You must be signed in to change notification settings - Fork 6
TwoWire' has no member named 'end' (ESP8266 and ESP32) #1
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
Comments
@lewispg228 @AndyEngland521 Looks like you guys are cargo culting code from somewhere. Why are you ending I2C hardware on the master when changing the address of a slave? I don't think you need to. |
Hey @nseidle, I added those lines:
After we first started to set the brown-out detection fuse bits, the response from the library wasn't acting very consistent with the board. In debugging the issue, I ended up adding a delay and later including the close of the hardware connection to get better results. I can add an I agree that line shouldn't be necessary, but it seemed to provide more consistent results in the address change function. If I add an |
I removed the end() and created release v1.1.0. Verified on three sets of hardware: atmega328 (redboard qwiic), esp8266 thing and a esp32 thing dev. |
For documentation:
When trying to compile code for this library, the following error is generated for ESP8266 and ESP32 based boards.
error: 'class TwoWire' has no member named 'end'
_i2cPort->end();
The text was updated successfully, but these errors were encountered: