#include int infoscreen_clock(unsigned char screen[LCD_H][LCD_W]); int infoscreen_tv(unsigned char screen[LCD_H][LCD_W]); int infoscreen_poytya(unsigned char screen[LCD_H][LCD_W]); int infoscreen_tuulinen(unsigned char screen[LCD_H][LCD_W]); int infoscreen_internet(unsigned char screen[LCD_H][LCD_W]); int infoscreen_wlan(unsigned char screen[LCD_H][LCD_W]); int infoscreen_repa_tamk(unsigned char screen[LCD_H][LCD_W]); int infoscreen_repa_rautatieasema(unsigned char screen[LCD_H][LCD_W]); int infoscreen_repa_sorila(unsigned char screen[LCD_H][LCD_W]); int infoscreen_lampotila(unsigned char screen[LCD_H][LCD_W]); struct is_desc { char *title; // Render returns the time of next update or -1 if no update necessary int (*render)(unsigned char screen[LCD_H][LCD_W]); }; #define IS_COUNT 7 struct is_desc is_list[IS_COUNT] = { {"Kello", &infoscreen_clock}, {"Lämpötila", &infoscreen_lampotila}, {"TAMK", &infoscreen_repa_tamk}, {"Rautatieasema", &infoscreen_repa_rautatieasema}, {"Lintukalliontie", &infoscreen_repa_sorila}, {"Pöytyä", &infoscreen_poytya}, {"WLAN", &infoscreen_wlan} };