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')
ssd1306 display issue on wemos d1 mini
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: ssd1306 display issue on wemos d1 mini
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.
Index to my micropython libraries.
Re: ssd1306 display issue on wemos d1 mini
Peter,
Thanks you are completely correct, a firmware update as you suggested fixed the issue!
Thanks you are completely correct, a firmware update as you suggested fixed the issue!