-
I have a hardware configuration that may or may not have an ST7567 display connected. Therefore I want to check it's presence over I2C but I cannot find a library function in U8g2 that returns a bool or similar to indicate successful communication or presence. Is there anything built in the library to allow this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is out fo the scope of u8g2 library. You can do this with the standard Arduino library.
if you receive anything else than 0 with the second step, then you can assume, that the display is not connected |
Beta Was this translation helpful? Give feedback.
-
Thanks, will implement this. |
Beta Was this translation helpful? Give feedback.
This is out fo the scope of u8g2 library. You can do this with the standard Arduino library.
if you receive anything else than 0 with the second step, then you can assume, that the display is not connected