Using the 12864-06D display, and how does flipmode work? #1791
Replies: 2 comments
-
The code for flipmode is only sent to the display if the flipmode command (https://github.com/olikraus/u8g2/wiki/u8g2reference#setflipmode) is used. Ideally setFlipMode(0) should be executed automatically by the constructor. Unfortunately this isn't done (I missed this very early in the development now I am too lazy to fix this). In your case: Line 804 in d9402d5 The flip mode sequence is sent here: Lines 819 to 830 in d9402d5 And the commands are repeated in the normal startup sequence of that display: Lines 787 to 802 in d9402d5 Which is actually defined here: Lines 59 to 73 in d9402d5 But it seems, that the flip mode sequences are wrong. and the code for flip mode 0 and startup do not match. Is this the problem you observed? To fix this, I need to change Line 822 in d9402d5 to zflip1 and Line 827 in d9402d5 to zflip0 hmm looks like a bug in u8g2... |
Beta Was this translation helpful? Give feedback.
-
Created issue #1792 for this. |
Beta Was this translation helpful? Give feedback.
-
So a while ago i bought some displays of aliexpress. As one does. They were explicitly specified as being "right to left written".
It took me ages to get t the right constructor but in the end i found out that "U8G2_ST7565_NHD_C12864_1_4W_SW_SPI" will work. Because before this i used U8G2_ST7565_KS0713_1_4W_SW_SPI constructor, but altered the ADC reversal line manually in the library.
So now everything is oriented correctly (writing left to right and no mirrored letters), For my use case i did have to use rotation R2 but that's besides the point.
Something i don't understand tho is how the flipmode works in the constructor code. how can i know if the flipmode instruction actually works looking at the library?
Beta Was this translation helpful? Give feedback.
All reactions