19.
LCD1602a
osoyoo
I2C Address
PCF8574 |
PCF8574A |
0x27 |
0x3F |
API
- LcdInit(Addr: number)
Initial LCD
Addr: I2C Address.
- ShowNumber(n: number, x: number, y: number)
show a number in LCD at given position.
n: number will be show
x: is LCD column position, [0 – 15]
y: is LCD row position, [0 – 1]
- ShowString(s: string, x: number, y: number)
show a string in LCD at given position.
s: string will be show
x: is LCD column position, [0 – 15]
y: is LCD row position, [0 – 1]
- on()
turn on LCD
- off()
turn off LCD
- clear()
clear LCD content
- BacklightOn()
turn on LCD backlight
- BacklightOff()
turn off LCD backlight
- shl() shift left screen
- shr() shift right screen
Connection for flame sensor:
microbit |
LCD1602 |
5V |
VCC |
GND |
GND |
P19/SCL |
SCL |
P20/SDA |
SDA |
LCD1602a vcc 3.3V
吉哥的makecode 積木 https://github.com/lioujj/pxt-lcd1602