I2C LCD micropython esp32
import
from LCD.lcd import LCD1602
LCD = LCD1602(scl=12, sda=14)
#LCD1602(scl, sda, num_lines=None, num_columns=None, freq=None):
LCD.puts('teste',x=0,y=1)
#y 0~1
#x 0~15
print txt
from time import sleep
LCD.println(['1','2','3','4','5'])
x = 2
while True:
sleep(1)
LCD.println(linha=x)
x+=1
#linha == line for txt(list)
for txt
from time import sleep
LCD.println('1 \n 2 \n 3 \n 4 \n 5')
x = 2
while True:
sleep(1)
LCD.println(linha=x)
x+=1
print choices
from time import sleep
LCD.escolhas('txtprincipal', 0, ['1','2','3','4','5'])
x = 1
while True:
sleep(1)
LCD.escolhas(posicao=x)
if x == 3:
print(LCD.escolhas(select=True))
break
x+=1
lcd clear
LCD.clear()
lcd print in line
LCD.putsln(['line 0', 'line 1'])
especial char
from time import sleep
b = bytearray([0x04,0x0A,0x04,0x0A,0x04,0x0A,0x04,0x0A])
LCD.char(0,b)
v = ' 1 \n 2 \n 3 \n 4 \n 5 \n '+chr(0)
# or v = ['1','2','3','4','5',chr(0)]
LCD.println(v)
x = 2
while True:
sleep(1)
LCD.println(linha=x)
x+=1
#linha == line for txt(list)
lcd hal backlight
LCD.hal_backlight()
lcd blink
LCD.brilhe(local=[1,1])
# or lcd not blink LCD.brilhe(False)
lcd animation for clear line
LCD.apagarlinha(1)
Release files for esp32-micropython-i2cLCD 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| esp32_micropython_i2cLCD-0.0.2.tar.gz | 6.5 kB | Details |
Release files / esp32_micropython_i2cLCD-0.0.2.tar.gz
| Download URL | esp32_micropython_i2cLCD-0.0.2.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ccf23db1c2c83e137e2beea8ed28d5bf987cb830e165921d609d989005cb0357
|
|
BLAKE2b-256 checksum How to use checksums |
0ac41923f0dee100a0270a95371ab1d4f4c08086de55118573181661cd552aff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|