Hello,
I am using Mbed LPC1768 with 128x64 OLED. I am using the below code to display a character. It compiles but the OLED does not display the character, and I can see the embed led1 is blinking. Does anyone know why the below code doesn’t work?
Hello,
At first I wish all a merry christmas!
To your question:
I think you should do all the display stuff outside the while(1) loop because
you are clearing the display all the time.
‘’'int main()
{
oled.clearDisplay();
oled.setTextSize(1);
oled.setTextColor(SSD1306_WHITE);
oled.setTextCursor(0, 0);
oled.writeChar(‘H’);
oled.display();
while(1)
{
}
}
Hello Walter, thanks for your response. I was thinking I might choose the wrong adafruit library because when I compile the above code, it says that
class “Adafruit_SSD1306_I2c” has no member “setTextSize” “oled.setTextSize(1);”
This works perfectly for the Arduino but not in Mbed.