From d8d056e5ef0136ee0425a6aa03f710ce99fa3da9 Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Fri, 12 Aug 2011 20:13:19 +0200 Subject: [PATCH] Add simple static screen based on idea by SvOlli --- firmware/l0dable/static.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 firmware/l0dable/static.c diff --git a/firmware/l0dable/static.c b/firmware/l0dable/static.c new file mode 100755 index 0000000..c1610c3 --- /dev/null +++ b/firmware/l0dable/static.c @@ -0,0 +1,33 @@ +#include +#include + +#include "basic/basic.h" +#include "basic/config.h" +#include "basic/random.h" + +#include "lcd/render.h" +#include "lcd/display.h" + +#include "lcd/fonts.h" +#include "lcd/fonts/invaders.h" + +#include "funk/mesh.h" + +#include "usetable.h" + + +void ram(void) +{ + int x, y; + + while( getInputRaw() == BTN_NONE ) { + for( x = 0; x < RESX; x++ ) { + for( y = 0; y < RESY_B; y++ ) { + lcdBuffer[y*RESX+x]=getRandom()&0xff; + } + } + lcdDisplay(); + } + return; +} +