Skip to content
LoPy I2C LCD Library
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
screenshots
README.md
lopy_lcd.py

README.md

LoPyI2CLCD

LoPy I2C/SPI LCD Library

I2C Display:

LCD-1

LCD-1

SPI Display:

LCD-2

Display wiring

i2c: GND, 3.3V, SDA, SCL (see LoPy pinout)

spi: D0 - P10 (CLK) D1 - P11 (MOSI) DC - P23 RST - P22 CS - not used (for some displays needs to be connected with GND)

Example:

displayType = kDisplaySPI128x64
initialize(displayType)
if isConnected():
   set_contrast(128) # 1-255
   displayOn()
   clearBuffer()
   addString(0, 0,  sys.platform + " " + sys.version)
   addString(0, 1,  "---")
   addString(0, 2,  "CPU: {} MHz".format(machine.freq()[0]/1000000))
   drawBuffer()
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.