Hi,
I am having a problem with arduino Nano and OLED display with SSD1322 driver. After wiring up the
display, it shows "Hello World" all the time, no matter what I type in code.
My code:
#include <Arduino.h>
#include <U8g2lib.h>
#include <SPI.h>
//U8G2_SSD1322_NHD_256X64_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
U8G2_SSD1322_NHD_256X64_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
void setup()
{
u8g2.begin();
u8g2.firstPage();
do
{
u8g2.setFont(u8g2_font_ncenB14_tr);
u8g2.drawStr(0,20,"AAAAAAA");
u8g2.clear();
}while(u8g2.nextPage());
}
void loop()
{
// put your main code here, to run repeatedly:
}
Yes, originally I wrote hello world but later when I changed it for something else it was still showing hello world. My guess is “hello world” is saved in display’s memory, but I don’t know if I wrote it inside it or the display came to me with phrase already in memory.
I've found the problem. My nano is not updating program thats running on it when i upload it. Thats why it shows the same text all the time, but i dont know how to fix it.