microbit-lib

I2C LCD1602

microbit LCD1602
3V VCC
GND GND
P19/SCL SCL
P20/SDA SDA

internal signal

LCD1602 PCF8574A
RS P0
RW P1
E P2
BackLight P3
Dat P4-P7

I2C Address

PCF8574 PCF8574A
0x27 0x3F

API

example

copy mb_i2c_lcd1602.py to microbit using mu or copy file content to your python file first.

from mb_i2c_lcd1602 import *

l=LCD1620()
l.puts('Hello microbit!')

From microbit/micropython Chinese community.
www.micropython.org.cn