SH1122 I2C #1852
-
I got the following display with an SH1122 I2C driver and i need help running it. http://www.wide.hk/index.php?route=product/product&path=24&product_id=56 I can only find SPI in the u8g2 library but not for i2c. What am i missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Did you check https://github.com/olikraus/u8g2/wiki/u8g2setupcpp ? |
Beta Was this translation helpful? Give feedback.
-
You could look for a HW_I2C line in one of the examples. Uncomment this line and replace the constructor name with U8G2_SH1122_256X64_1_HW_I2C So, for example this line: becomes
Also remember to activate 16 bit mode for your 256x64 display: Lines 163 to 169 in 7014e1d |
Beta Was this translation helpful? Give feedback.
You could look for a HW_I2C line in one of the examples. Uncomment this line and replace the constructor name with U8G2_SH1122_256X64_1_HW_I2C
So, for example this line:
u8g2/sys/arduino/u8g2_page_buffer/HelloWorld/HelloWorld.ino
Line 84 in 7014e1d
becomes
Also remember to activate 16 bit mode for your 256x64 display:
u8g2/doc/faq.txt
Lines 163 to 169 in 7014e1d