paulvha / scd30

arduino esp8266 ESP8266 SCD30 SCD-30 ESP32 UNOR4
Other
41 stars 11 forks source link

ESP32 Not getting ACK. #5

Closed xinort closed 3 years ago

xinort commented 3 years ago

Thank you for your work on this library. It is exactly what I was looking for. Unfortunately I can't get it to work. I'm not sure what I am doing wrong. I've confirmed the SCD30 is working by hooking it up to an Uno and using the sparkfun library. But with the ESP32 it doesn't seem to be able to communicate. In the examples there is a section that says:

////////////////////////////////////////////////////////////////////////// // SELECT THE WIRE INTERFACE // //////////////////////////////////////////////////////////////////////////

define SCD30WIRE Wire

But there is only that one option. Reading I think I need to select SoftWire? But then looking at the library code it seems it should be set automatically? Basically my questions is there anything special I need to do for it to work on an ESP32?