Esempio n. 1
0
void ICACHE_FLASH_ATTR 
display_draw_page(uint8 page)
{
    page--;
    LCD_print(_PageData[page].line1);
    LCD_setCursor(0,1);
    LCD_print(_PageData[page].line2);
    LCD_setCursor(0,2);
    LCD_print(_PageData[page].line3);
    LCD_setCursor(0,3);
    LCD_print(_PageData[page].line4);
}
Esempio n. 2
0
void TEST_fill() {
    FPS_start();

    for (u8 i = 0; i < 30; i++) {
        LCD_setCursor(0, 0);
        LCD_fillScreen(RED);
        FPS_frame();
        LCD_writeString(FPS_getText());
        LCD_setCursor(0, 0);
        LCD_fillScreen(GREEN);
        FPS_frame();
        LCD_writeString(FPS_getText());
    }
}
Esempio n. 3
0
void ICACHE_FLASH_ATTR
display_init(void)
{

    while (!LCD_init())
    {
        os_printf("LCD not found\n\r");
    }
    LCD_setCursor(0,2);
    LCD_print("Home status Display");

    LCD_setCursor(0,3);
    LCD_print("Connecting ");
    LCD_blink();
}
Esempio n. 4
0
void ICACHE_FLASH_ATTR 
display_redraw(void)
{
    char page_buffer[20];

    //Clear the lcd
    LCD_clear();

    //Draw the page from the buffer
    display_draw_page(display_page);

    //Draw page counter 
    LCD_setCursor(17,3);
    os_sprintf(page_buffer, "%i/%i",display_page,DISPLAY_PAGE_MAX);
    LCD_print(page_buffer);
}