crashtest-r0ket/firmware/applications/minimal.c

41 lines
750 B
C
Raw Normal View History

2011-07-04 00:04:33 +00:00
#include <sysinit.h>
#include "basic/basic.h"
#include "lcd/render.h"
#include "lcd/allfonts.h"
void backlightInit(void);
/**************************************************************************/
void main_minimal(void) {
int dx=0;
char key;
backlightInit();
font_direction = FONT_DIR_LTR; // LeftToRight is the default
while (1) {
lcdDisplay(0);
delayms(10);
key= getInput();
font=&Font_7x8;
// Easy flashing
if(key==BTN_LEFT){
DoString(0,8,"Enter ISP!");
lcdDisplay(0);
ISPandReset(5);
}
//font = &Font_Ubuntu36pt;
2011-07-10 13:41:16 +00:00
dx=DoString(0,0,"Hello World");
2011-07-04 00:04:33 +00:00
}
return;
}
void tick_minimal(void){
return;
};