You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I dug into different implementations of constructors initializing ST7565 with HW SPI and it looks like they're all referring to hard coded pin numbers that are not corresponding to BluePill pins. Probably I'm missing something, but also I'm unable to find a working config with HW SPI
2. What's the dc pin in the constructor?
I just tried the RS pin from the display and it worked, but why?
3. How to configure offset for the display?
I'm getting 125x64 useful pixels shifted 4 pixels right if initializing with U8G2_R2 and shift of 8 pixels if initialized with U8G2_R0 giving it 121x64 useful pixels.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello
I'm trying to bring up ESP32 with GMG12864 that I have in the spares and encountering several questions using u8g2.
My setup:
Display: GMG12864-06D
Now the questions
1. How to initialize the display with HW SPI?
I dug into different implementations of constructors initializing ST7565 with HW SPI and it looks like they're all referring to hard coded pin numbers that are not corresponding to BluePill pins. Probably I'm missing something, but also I'm unable to find a working config with HW SPI
2. What's the dc pin in the constructor?
I just tried the RS pin from the display and it worked, but why?
3. How to configure offset for the display?
I'm getting 125x64 useful pixels shifted 4 pixels right if initializing with
U8G2_R2
and shift of 8 pixels if initialized withU8G2_R0
giving it 121x64 useful pixels.Appreciate clues to the right direction.
Beta Was this translation helpful? Give feedback.
All reactions