Problem using the SSD1306 driver with the Wemos OLED shield

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
Post Reply
bitninja
Posts: 115
Joined: Thu Sep 15, 2016 4:09 pm
Location: Spring, Texas

Problem using the SSD1306 driver with the Wemos OLED shield

Post by bitninja » Wed Aug 23, 2017 8:40 pm

Hi,

I am having a problem using the Wemos OLED Shield (https://wiki.wemos.cc/products:d1_mini_ ... led_shield) with the SSD1306 driver in the library (https://github.com/micropython/micropyt ... ssd1306.py).

Here is my test code:

Code: Select all

import ssd1306
from machine import I2C, Pin

i2c = I2C(sda=Pin(4), scl=Pin(5))
display = ssd1306.SSD1306_I2C(48, 64, i2c)

display.fill(0)
for x in range(30):
    display.pixel(x,x,1)
display.show()
Which seems to communicate with the display... but does not display correctly...
oled_error.jpg
oled_error.jpg (108.39 KiB) Viewed 1148 times
Any help would be appreciated... Thanks!

bitninja
Posts: 115
Joined: Thu Sep 15, 2016 4:09 pm
Location: Spring, Texas

Re: Problem using the SSD1306 driver with the Wemos OLED shield

Post by bitninja » Wed Aug 23, 2017 9:32 pm

Nevermind. I had been using a hacked ssd1306.py driver and had the height and width parameters reversed. :oops:

Post Reply