/*************************************************************************** * Copyright (C) 2020 - 2023 by Federico Izzo IU2NUO, * * Niccolò Izzo IU2KIN * * Silvano Seva IU2KWO * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 3 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, see * ***************************************************************************/ #include #include #include #include #include #include "ui.h" int main(void) { platform_init(); // Init the graphic stack gfx_init(); gfx_clearScreen(); gfx_render(); platform_setBacklightLevel(255); while(1) { for(int tot=1; tot<=10; tot++) { gfx_clearScreen(); for(int cur=1; cur<=tot; cur++) { gfx_printLine(cur, tot, 0, 0, 0, FONT_SIZE_8PT, TEXT_ALIGN_CENTER, color_white, "Line %2d of %2d", cur, tot); } gfx_render(); // Sleep for 1 second sleepFor(1u, 0u); } } }