Starmbi / hp_BH1750

hp_BH1750
MIT License
31 stars 10 forks source link

esp32 S2 just halts #3

Closed tablatronix closed 2 years ago

tablatronix commented 2 years ago

For some reason I cannot get this to work on the S2, ill keep testing and see if I can gather any debug or crash data.

my serial out put just stops, so not sure what to do here..

This line is where my code just stops.. unsigned int req = _wire->requestFrom((int)_address, (int)2); // request two bytes

Any ideas welcome, pretty sure it worked on esp32, gonna test again, also all other i2c sensors work fine

Starmbi commented 2 years ago

It seems that no command for a request was sent. Please use a example code and check the wiring again. Perhaps there is a issue with the S2. I don't know this device. Sorry.

ladyada commented 2 years ago

@tablatronix please try this fix https://github.com/Starmbi/hp_BH1750/pull/4/files

tablatronix commented 2 years ago

Seems to be working now, closing