def begin(): global LCD LCD = LCD_I2C(LCD_ADDRESS, LCD_WIDTH, LCD_HEIGHT) LCD.backlight() LCD.clear() LCD.setCursor(2, 0) # row, column LCD.write("SYSTEM STARTING") LCD.setCursor(7, 2) # row, column LCD.write("....")
def systemErrorPage(): # system error page LCD = LCD_I2C(LCD_ADDRESS, LCD_WIDTH, LCD_HEIGHT) LCD.backlight() LCD.clear() LCD.setCursor(0, 0) # row, column LCD.write(" LOCKER ERROR ") LCD.setCursor(0, 2) # row, column LCD.write("please contact admin") LCD.setCursor(8, 3) # row, column LCD.write("...")
def systemClosedPage(): # system closed page LCD = LCD_I2C(LCD_ADDRESS, LCD_WIDTH, LCD_HEIGHT) LCD.backlight() LCD.clear() LCD.setCursor(1, 0) # row, column LCD.write(" LOCKER CLOSED ") LCD.setCursor(0, 2) # row, column LCD.write("please return later") LCD.setCursor(8, 3) # row, column LCD.write("...")