how can i setup my oled in my arduino due
#include "U8glib.h"
U8GLIB_SSD1306_128X32 u8g(21, 20);
//connect scl to pin21
//connect sda to pin20
u8g.setFont(u8g_font_unifont);
u8g.setScale2x2();
u8g.setPrintPos(0,0);
do {
u8g.print("text");
} while( u8g.nextPage() );
also i try to scan i got this:
Scanning...
I2C device found at address 0x3C !
done
but nothing show up in the oled
mu oled work with SSD1306
i try this code:
#include "U8glib.h"
.
.
.
.
U8GLIB_SSD1306_128X32 u8g(21, 20);
u8g.setFont(u8g_font_unifont);
u8g.setScale2x2();
u8g.setPrintPos(0,0);
do {
u8g.print("text");
} while( u8g.nextPage() );
.
.
.
nothing shows up
i also try to scan i2c (How to Scan I2C Address in Arduino - Arduino Project Hub )
i got this
Scanning...
I2C device found at address 0x3C !
done
pert
June 15, 2020, 6:48am
#3
It's difficult to provide assistance based on this strangely fragmented sketch.
If you run the File > Examples > U8glib > PrintTest sketch, does it work as expected?
u8g2.firstPage(); is missing in your code.
pert
June 15, 2020, 6:51am
#5
@arashsoft , I have already warned you multiple times about cross-posting, yet you persist in this behavior. So I'm giving you a three day suspension from the forum. Upon your return, I hope you'll be more respectful of our rules.
ZinggJM:
u8g2.firstPage(); is missing in your code.
i tried but nothing shows up again