Skip to content

Instantly share code, notes, and snippets.

@eydam-prototyping

eydam-prototyping/REPL Secret

Created Feb 16, 2021
Embed
What would you like to do?
>>> import machine
>>> from esp8266_i2c_lcd import I2cLcd
>>> from rotary_irq_esp import RotaryIRQ
>>> i2c = machine.I2C(0, scl=machine.Pin(22), sda=machine.Pin(21))
>>> lcd = I2cLcd(i2c, 39, 2, 16)
>>> lcd.clear()
>>> lcd.putstr("Hello World") # "Hello World" should be displayed
>>> r = RotaryIRQ(18,19,0,10,False)
>>> r.value() # turn rotary
0
>>> r.value()
16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment