-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[OLED] Don't change shared bus speed #3208
[OLED] Don't change shared bus speed #3208
Conversation
Maybe also add a warning to MLX90614 plugin to set it to 100 kHz I2C? The nicest way would be to have it as boolean in the device definition (begin of a plugin), and then the web interface automatically show the warning when it is applicable. |
Well, that would imply that ESPEasy has in-depth knowledge about the technical specs/limitations of the plugins it supports, and one would expect that warning for other plugins as well. A more feasible option could be to have a configurable I2C clock speed for each I2C device, where 0=default to the global setting. (As one of the suggestions in this forum post) |
I don't know if variable clock speed will work on the I2C bus. |
Maybe we can also have a new device type... But like I said, I don't know if a truly low speed device (100 kHz) may cause issues when it may not recognize other commands on the bus for other devices. |
That is a concern. A low speed device might cause bus problems if the i2c clocking is increased for other devices. To avoid that possibility it seems that the slowest device would globally determine the max bus speed that should be used.
|
Yep, I think we should first obey the KISS principle and only give a warning on the problematic plugin and just rely on the global I2C clock settings. |
Removed
Wire.clockSpeed()
call as a library shouldn't change a shared resource.Resolves #3207