/* * yay.c * * Copyright 2012 ManiacTwister * * 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 2 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, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * * */ #include #include "basic/basic.h" #include "lcd/render.h" #include "lcd/display.h" #include "lcd/allfonts.h" #include "usetable.h" void ram(void) { int key; int i = 0; bool run = true; while(run) { i += 1; showDisplay(i); key = getInputWaitTimeout(242); if(key != 0) { run = false; } } return; } void showDisplay(int i) { lcdClear(); lcdPrint("Yay!"); lcdNl(); lcdPrintInt(i); lcdRefresh(); }