wemos lolin esp32 oled ssd1306
Posted: Sat Jul 29, 2017 2:48 am
Hi all,
Just got a new chinese clone of lolin wemos 32 with integrated oled ssd1306 display.
The board is flashed with the latest firmware (esp32-20170729-v1.9.1-391-g06168c92.bin ), and i am trying to work out an examle taken from this web page :
http://www.instructables.com/id/MicroPy ... ated-SSD1/
If i try to import the ssd1306 module i get an error 1st time ,but 2nd time it imports it correctly with no errors(i have tried importing all libraries i could have found.
for exaple this one .. https://github.com/adafruit/Adafruit_Ci ... /tag/1.0.2
if iscan i2c bus , ican see the display
>>>i2c = machine.I2C(scl=machine.Pin(4), sda=machine.Pin(5))
>>>i2c.scan()
[60]
Also the display works with arduino samples.
The problem comes when i try to use it:
>>>oled = ssd1306.SSD1306_I2C(128, 64, i2c) # --> at this point i get an error saying:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'SSD1306_I2C'
>>>
I would appreciate any help you guys can provide!
Thanks
Just got a new chinese clone of lolin wemos 32 with integrated oled ssd1306 display.
The board is flashed with the latest firmware (esp32-20170729-v1.9.1-391-g06168c92.bin ), and i am trying to work out an examle taken from this web page :
http://www.instructables.com/id/MicroPy ... ated-SSD1/
If i try to import the ssd1306 module i get an error 1st time ,but 2nd time it imports it correctly with no errors(i have tried importing all libraries i could have found.
for exaple this one .. https://github.com/adafruit/Adafruit_Ci ... /tag/1.0.2
if iscan i2c bus , ican see the display
>>>i2c = machine.I2C(scl=machine.Pin(4), sda=machine.Pin(5))
>>>i2c.scan()
[60]
Also the display works with arduino samples.
The problem comes when i try to use it:
>>>oled = ssd1306.SSD1306_I2C(128, 64, i2c) # --> at this point i get an error saying:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'SSD1306_I2C'
>>>
I would appreciate any help you guys can provide!
Thanks