Skip to content

SH1122 I2C #1852

Answered by olikraus
JasminMelni1990 asked this question in Q&A
Apr 30, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

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_SSD1306_128X64_NONAME_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);

becomes

U8G2_SH1122_256X64_1_HW_I2C u8g2(U8G2_R0, U8X8_PIN_NONE);

Also remember to activate 16 bit mode for your 256x64 display:

u8g2/doc/faq.txt

Lines 163 to 169 in 7014e1d

Q: How to activate 16 Bit mode?
A: Search for the line
//#define U8G2_16BIT
in "u8g2.h". Uncomment this line:
#define U8G2_16BIT
The file …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@JasminMelni1990
Comment options

Comment options

You must be logged in to vote
1 reply
@JasminMelni1990
Comment options

Answer selected by JasminMelni1990
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