LCD display on a Pi Pico

preview_player
Показать описание
A 1602A LCD from eBay and a Pi Pico - all powered by a phone power bank from K-Mart. Code shown below.

from machine import I2C, Pin
from time import sleep
from pico_i2c_lcd import I2cLcd
i2c = I2C(0, sda=Pin(0), scl=Pin(1), freq=400000)

lcd = I2cLcd(i2c, I2C_ADDR, 2, 16)
while True:
print(I2C_ADDR)
sleep(2)
sleep(2)
for i in range(10):
sleep(0.2)
sleep(0.2)
for i in range(20):
sleep(0.4)
Рекомендации по теме
Комментарии
Автор

Cool I’ve been trying to lean 16x2 lcds for so long

CFedits