Пример #1
0
def disp_init(config):
    if (config == 1 or config == 3):
        lcd.page_init(lcd.LCD_P1, loc_naming[0], loc_naming[1],
                      (str(chVolt[2])[:5]) + 'v', (str(chVolt[3])[:5]) + 'v')
    if (config == 2 or config == 3):
        lcd.page_init(lcd.LCD_P2, loc_naming[2], loc_naming[3],
                      (str(chVolt[1])[:5]) + 'C', (str(chVolt[0])[:5]) + 'v')
Пример #2
0
def disp_init(config):
    lcd.hw_init()
    if (config == lcd.C.LCD_P1 or config == lcd.C.LCDALLPAGE):
        lcd.page_init(lcd.C.LCD_P1, p1_screen[0], p1_screen[1], p1_screen[2],
                      p1_screen[3])
    if (config == lcd.C.LCD_P2 or config == lcd.C.LCDALLPAGE):
        lcd.page_init(lcd.C.LCD_P2, p2_screen[0], p2_screen[1], p2_screen[2],
                      p2_screen[3])
    lcd.two_page_disp()