This is an old revision of the document!
#include <stdio.h> #include <homelab/delay.h> #include <homelab/module/lcd_gfx.h> // // Põhiprogramm // int main(void) { signed short number=0; char text[16]; // LCD ekraani seadistamine lcd_gfx_init(); lcd_gfx_clear(); // Taustavalgustuse tööle lülitamine lcd_gfx_backlight(true); // Programmi nime kuvamine lcd_gfx_goto_char_xy(1, 1); lcd_gfx_write_string("Charecter map"); // Lõputu tsükkel while (true) { sprintf(text, "%i - %c ", number, number); // Teksti kuvamine LCD teise rea alguses lcd_gfx_goto_char_xy(1, 2); lcd_gfx_write_string(text); number++; sw_delay_ms(500); } }