mirror of
https://github.com/micropython/micropython-unicorn.git
synced 2025-09-06 13:43:06 +00:00
www-unicorn/pyboard_demos.py: Use I2C('X') for LCD I2C demo.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -119,9 +119,7 @@ servo.angle(90, 5000)
|
||||
import machine
|
||||
import framebuf
|
||||
|
||||
scl = machine.Pin('X9')
|
||||
sda = machine.Pin('X10')
|
||||
i2c = machine.I2C(scl=scl, sda=sda)
|
||||
i2c = machine.I2C('X')
|
||||
|
||||
fbuf = framebuf.FrameBuffer(bytearray(64 * 32 // 8), 64, 32, framebuf.MONO_HLSB)
|
||||
|
||||
|
Reference in New Issue
Block a user