Trouble using wemos' oled 64x48 screen
Posted: Sat Apr 09, 2016 6:01 am
Hi !
I ordered the wemos oled shield (64x48) but can't make it work
I soldered the shield on the Wemos D1, soldering each pin
I'm using the original firmware (contains u8g library & supports ssd1306 i2c)
I'm using the following script
sda = 2
scl = 1
sla = 0x3c
txt="XXX"
i2c.setup(0, sda, scl, i2c.SLOW)
disp = u8g.ssd1306_64x48_i2c(sla)
disp:setFont(u8g.font_6x10)
disp:setFontRefHeightExtendedText()
disp:setDefaultForegroundColor()
disp:setFontPosTop()
disp:drawStr(0, 0, "drawBox")
disp:drawBox(5, 10, 20, 10)
disp:drawBox(10, 15, 30, 7)
disp:drawStr(0, 30, "drawFrame")
disp:drawFrame(5, 10+30, 20, 10)
disp:drawFrame(10, 15+30, 30, 7)
3)All i get is a screen with random dots. Unable to draw, clear or anything. Help !
I ordered the wemos oled shield (64x48) but can't make it work
I soldered the shield on the Wemos D1, soldering each pin
I'm using the original firmware (contains u8g library & supports ssd1306 i2c)
I'm using the following script
sda = 2
scl = 1
sla = 0x3c
txt="XXX"
i2c.setup(0, sda, scl, i2c.SLOW)
disp = u8g.ssd1306_64x48_i2c(sla)
disp:setFont(u8g.font_6x10)
disp:setFontRefHeightExtendedText()
disp:setDefaultForegroundColor()
disp:setFontPosTop()
disp:drawStr(0, 0, "drawBox")
disp:drawBox(5, 10, 20, 10)
disp:drawBox(10, 15, 30, 7)
disp:drawStr(0, 30, "drawFrame")
disp:drawFrame(5, 10+30, 20, 10)
disp:drawFrame(10, 15+30, 30, 7)
3)All i get is a screen with random dots. Unable to draw, clear or anything. Help !