-
I am using an SSH1106 OLED display connected to a Teensy4.1 and running in 4W SW SPI mode with this library. When I run the basic full buffer Hello World example only the top half of the text is shown, and text on a lower line does not appear at all. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
More details would be nice: Picture of the output and complete code (including the u8g2 constructor name), which renders the output of the picture. |
Beta Was this translation helpful? Give feedback.
-
if (loggerConfiguration.expansionType== EXPANSION_BOARD_GUI_SPI){
sDevice->println("initialising OLED");
u8g2.begin();
u8g2.clearBuffer(); // clear the internal memory
u8g2.setFont(u8g2_font_6x12_tr); // choose a suitable font
u8g2.drawStr(0,60,"HiPerDaq (ultra)"); // write something to the internal memory
//u8g2.drawStr(0,20,"fw ver 1.11"); // write something to the internal memory
u8g2.sendBuffer(); // transfer internal memory to the display
} If I use a bigger vertical offset such as 20, there is no text. |
Beta Was this translation helpful? Give feedback.
You must use the "F" (full buffer) constructor instead of the "1" constructor.
https://github.com/olikraus/u8g2/wiki/u8g2setupcpp#constructor-name