-
Notifications
You must be signed in to change notification settings - Fork 114
I2CComponent::write_byte_16 writes 0 words #78
Comments
Oh! Thank you so much! That would have been a nightmare to debug (I hope you didn't have to debug for too long... My mistake) |
It wasn't "fun" to debug, in the end I used my Logic Analyzer and hooked it up to see what was going on :) |
Oh noes... Sorry about that. As a tip, you can set the debug level to VERY_VERBOSE and you will see the entire i2c traffic in the logs 😉 https://esphomelib.com/esphomeyaml/components/logger.html |
Sorry for replying to this closed ticket, but I'm trying to debug an issue with TSL2561, and wanted to set the logging level as you suggested:
but I don't get any additional log entries :( |
That would be because So to set the log level to very verbose you need to set it inside [env:YOUR_ENV]
build_flags = -DESPHOMELIB_LOG_LEVEL=ESPHOMELIB_LOG_LEVEL_VERY_VERBOSE |
Do you know an easy way to do this using Arduino? |
Puh... that might be difficult. I've never really used the Arduino IDE before, but maybe this could help? |
I decided to simply cheat, by modifying |
https://github.com/OttoWinter/esphomelib/blob/249e0b527360e3bc93dcc9b97f698d3f3cb072a9/src/esphomelib/i2c_component.cpp#L196
After changing this to
communicating with a ADS1115 suddenly works :)
The text was updated successfully, but these errors were encountered: