Skip to content

How to confirm presence of ST7567 on I2C #2494

Closed Answered by olikraus
strud asked this question in Q&A
Discussion options

You must be logged in to vote

This is out fo the scope of u8g2 library. You can do this with the standard Arduino library.

  1. Send the I2C address of the ST7567 with https://www.arduino.cc/reference/en/language/functions/communication/wire/begintransmission/
  2. Then listen with https://www.arduino.cc/reference/en/language/functions/communication/wire/endtransmission/ for the response.

if you receive anything else than 0 with the second step, then you can assume, that the display is not connected

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by strud
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants