Metadata-Version: 2.1
Name: esp32-micropython-i2cLCD
Version: 0.0.1
Summary: uma biblioteca para utilização de um display i2c no esp32 micropython
Home-page: UNKNOWN
Author: issei momonge
Author-email: mggyggf@gmail.com
License: MIT License
Keywords: esp32 micropython i2c LCD
Platform: UNKNOWN
Description-Content-Type: text/markdown
License-File: LICENCE

# 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):

print
    
    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)
        x+=1
        if x == 3:
            print(LCD.escolhas(posicao=x,select=True))
            break

lcd clear

    LCD.clear()
    
lcd print in line

    LCD.putsln(['line 0', 'line 1'])

especial char

    from time import sleep
    
    b = bytearray([...])
    LCD.char(0,b)    
    LCD.println(['1','2','3','4',char(0)])
    
    x = 2
    while True:
        sleep(1)
        LCD.println(linha=x)
        x+=1

    #linha == line for txt(list)

lcd hal backlight

    LCD.hal_backlight()

