Skip to content

Babyze/i2c-lcd-1602-vietnamese

Folders and files

NameName
Last commit message
Last commit date

Latest commit

38c25a0 · Nov 16, 2024

History

1 Commit
Nov 16, 2024
Nov 16, 2024
Nov 16, 2024
Nov 16, 2024
Nov 16, 2024

Repository files navigation

Vietnamese charset for I2C LCD 16xx Driver

A vietnamese charset driver for LCD 1602, 1604


vn


Example

  1. Display the string within specifying its starting position
import lcddriver
from time import *

lcd = lcddriver.lcd()

self.lcd.lcd_display_string_pos("Máy phân loại", 1, 0)
self.lcd.lcd_display_string_pos("rác hoạt động", 2, 1)

Result: Display within position

  1. Display the string without specifying its starting position
import lcddriver
from time import *

lcd = lcddriver.lcd()

self.lcd.lcd_display_string("Máy Đang Bảo Trì!", 1)
self.lcd.lcd_display_string("Xin thử lại sau", 2)

Display without position


API

lcd_display_string(string, line)

Display the string

Parameter Type Min Max Description
string string - - String want to display
line number 1 4 Which line want to display

lcd_display_string_pos(string, line, pos)

Display the string without specifying its starting position

Parameter Type Min Max Description
string string - - String want to display
line number 1 4 Which line want to display
pos number 0 - Starting position for displaying the string

lcd_clear()

Clear all string are displaying on the LCD

backlight(state)

Turn off or turn on backlight

Parameter Type Min Max Description
state number 0 1 Turn off (0) or turn on (1) backlight

License

MIT

About

Vietnamese charset for I2C LCD 1602, 1604 Driver

Topics

Resources

License

Stars

Watchers

Forks

Languages