Search found 1 match

by haks
Thu Apr 06, 2017 10:07 pm
Forum: Drivers for External Components
Topic: I2C LCD Library... Help!
Replies: 57
Views: 173351

Re: I2C LCD Library... Help!

Help: <ImportError: no module named 'esp8266_i2c_lcd'> trying to load the same code:

from esp8266_i2c_lcd import I2cLcd
from machine import Pin, I2C
i2c = I2C(scl=Pin(5), sda=Pin(4), freq=100000)
i2c.scan()
lcd = I2cLcd(i2c, 63, 2, 16)
lcd.clear()
lcd.putstr(' Thanks from Ukraine :-) ')