2011-06-12 23:45:20 +00:00
|
|
|
#include <sysinit.h>
|
|
|
|
|
|
|
|
#include "basic/basic.h"
|
|
|
|
|
|
|
|
#include "lcd/render.h"
|
|
|
|
#include "lcd/allfonts.h"
|
|
|
|
|
2011-08-03 09:34:18 +00:00
|
|
|
void backlightInit(void);
|
2011-06-12 23:45:20 +00:00
|
|
|
|
|
|
|
/**************************************************************************/
|
|
|
|
|
2011-06-20 21:33:42 +00:00
|
|
|
void main_s(void) {
|
2011-08-03 09:34:18 +00:00
|
|
|
uint8_t key;
|
|
|
|
//lcdClear();
|
2011-06-12 23:45:20 +00:00
|
|
|
while (1) {
|
2011-08-03 09:34:18 +00:00
|
|
|
uint8_t contrast = lcdRead(0xDF);
|
|
|
|
lcdInit(); // display
|
|
|
|
lcdPrint("reg=");
|
|
|
|
lcdPrintCharHex(contrast);
|
|
|
|
lcdNl();
|
|
|
|
lcdDisplay();
|
|
|
|
while(1);
|
|
|
|
delayms(500);
|
|
|
|
|
|
|
|
//key= getInputWait();
|
|
|
|
|
|
|
|
// Easy flashing
|
|
|
|
if(key==BTN_LEFT){
|
|
|
|
DoString(0,8,"Enter ISP!");
|
|
|
|
lcdDisplay();
|
|
|
|
ISPandReset();
|
|
|
|
}
|
2011-06-12 23:45:20 +00:00
|
|
|
}
|
2011-08-03 09:34:18 +00:00
|
|
|
}
|
2011-06-12 23:45:20 +00:00
|
|
|
|
2011-08-03 09:34:18 +00:00
|
|
|
void tick_minimal(void){
|
2011-06-12 23:45:20 +00:00
|
|
|
return;
|
2011-08-03 09:34:18 +00:00
|
|
|
};
|