Skip to content

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

Closed
cmfrancis opened this issue Jun 10, 2019 · 3 comments
Closed

TwoWire' has no member named 'end' (ESP8266 and ESP32) #1

cmfrancis opened this issue Jun 10, 2019 · 3 comments

Comments

@cmfrancis
Copy link

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();

@nseidle
Copy link
Member

nseidle commented Jun 11, 2019

@santaimpersonator
Copy link
Contributor

santaimpersonator commented Jun 11, 2019

Hey @nseidle, I added those lines:

_i2cPort->end();
delay(100);

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 #if statement to fix the compilation issue. It looks like wire library for the AVR, Mega, and SAMD cores all support the end() function, the exception is the Espressif cores for the ESP8266 and ESP32.

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 #if statement to fix the compilation issue, would it be preferable to just exclude the ESP cores for that line?

@lewispg228
Copy link
Member

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.

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

No branches or pull requests

4 participants