Skip to content

ESP32 #7

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
kbickham opened this issue Aug 8, 2019 · 3 comments
Closed

ESP32 #7

kbickham opened this issue Aug 8, 2019 · 3 comments

Comments

@kbickham
Copy link

kbickham commented Aug 8, 2019

I believe the the hardware driver on the esp32 (in Arduino IDE) is called differently, not sure about an equivalent function... I think it'll be easier to just directly talk to the module but I got this error on compilation:

SparkFunMLX90614.cpp:284:7: error: 'class TwoWire' has no member named 'end'
....
\Users\Lauren\Documents\Arduino\libraries\SparkFun_MLX90614_Arduino_Library-master\src\SparkFunMLX90614.cpp: In member function 'uint8_t IRTherm::wake()':

C:\Users\Lauren\Documents\Arduino\libraries\SparkFun_MLX90614_Arduino_Library-master\src\SparkFunMLX90614.cpp:284:7: error: 'class TwoWire' has no member named 'end'

Wire.end(); // stop i2c bus to send wake up request via digital pins

   ^

Using library SparkFun_MLX90614_Arduino_Library-master at version 1.0.2 in folder: C:\Users\Lauren\Documents\Arduino\libraries\SparkFun_MLX90614_Arduino_Library-master
Using library Wire at version 1.0.1 in folder: C:\Users\Lauren\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2\libraries\Wire
Using library SparkFun_AS726X at version 1.0.3 in folder: C:\Users\Lauren\Documents\Arduino\libraries\SparkFun_AS726X
Using library HX711_ADC at version 1.1.5 in folder: C:\Users\Lauren\Documents\Arduino\libraries\HX711_ADC
Using library EasyTransfer in folder: C:\Users\Lauren\Documents\Arduino\libraries\EasyTransfer (legacy)
exit status 1
Error compiling for board ESP32 Dev Module.

I would add, I'm not even calling the function from my code.

@vangalvin
Copy link

I changed line Line 284 - Wire.end(); // stop i2c bus to send wake up request via digital pins
to Wire.endTransmission(true);
That sorted out the issue.

@tombair
Copy link

tombair commented Mar 7, 2020

I am seeing a similar problem on an ESP8266 board, perhaps this is similar to this issue

Arduino: 1.8.12 (Windows 10), Board: "SparkFun ESP8266 Thing, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 512KB (FS:32KB OTA:~230KB), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

C:\Users\user\Documents\libraries\SparkFun_MLX90614_Arduino_Library-master\src\SparkFunMLX90614.cpp: In member function 'uint8_t IRTherm::wake()':

C:\Users\user\Documents\libraries\SparkFun_MLX90614_Arduino_Library-master\src\SparkFunMLX90614.cpp:284:7: error: 'class TwoWire' has no member named 'end'

Wire.end(); // stop i2c bus to send wake up request via digital pins

   ^

exit status 1
Error compiling for board SparkFun ESP8266 Thing.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@avellinosantiago
Copy link

the change on line Wire.endTransmission(true); worked! thanks

@rkaczorek rkaczorek mentioned this issue Jun 30, 2020
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