ssd1306 display issue on wemos d1 mini

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
simonmcc
Posts: 12
Joined: Fri May 11, 2018 5:21 pm

ssd1306 display issue on wemos d1 mini

Post by simonmcc » Fri May 11, 2018 5:28 pm

Hi, I'm sorry for my lack of python etc, I'm completely new to all of this, but I'm using a Wemos D1 Mini running v1.9-6, and I bought a ssd1306 module. I downloaded the ssd1306.py from https://github.com/micropython/micropyt ... ssd1306.py and tried this program:

program:
import ssd1306
import machine
i2c = I2C(-1, sda=Pin(5, machine.Pin.OUT), scl=Pin(4, machine.Pin.OUT))
scan = i2c.scan()
print('address: ' + str(scan))
display = ssd1306.SSD1306_I2C(128, 64, i2c)
display.fill(0)


output:
address: [60]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 49, in <module>
TypeError: function missing 1 required positional arguments


Any help appreciated

FYI:
>>> os.uname()
(sysname='esp8266', nodename='esp8266', release='2.0.0(5a875ba)', version='v1.9-6-g821dc27e-dirty on 2017-07-21', machine='ESP module with ESP8266')

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: ssd1306 display issue on wemos d1 mini

Post by pythoncoder » Sat May 12, 2018 7:17 am

I think the problem is that your firmware is out of date. Please update to the current version and try again.
Peter Hinch
Index to my micropython libraries.

simonmcc
Posts: 12
Joined: Fri May 11, 2018 5:21 pm

Re: ssd1306 display issue on wemos d1 mini

Post by simonmcc » Fri May 25, 2018 3:38 pm

Peter,

Thanks you are completely correct, a firmware update as you suggested fixed the issue!

Post Reply