2011-07-26 22:57:36 +00:00
|
|
|
#include <sysinit.h>
|
|
|
|
|
|
|
|
#include "basic/basic.h"
|
|
|
|
|
|
|
|
#include "lcd/print.h"
|
2011-07-26 23:15:52 +00:00
|
|
|
#include "lcd/display.h"
|
2011-07-26 22:57:36 +00:00
|
|
|
|
|
|
|
#include "filesystem/ff.h"
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
/**************************************************************************/
|
|
|
|
|
|
|
|
void readcfg(void) {
|
|
|
|
readConfig();
|
|
|
|
};
|
|
|
|
|
|
|
|
void savecfg(void){
|
|
|
|
saveConfig();
|
|
|
|
};
|
|
|
|
|
|
|
|
void applycfg(void){
|
|
|
|
applyConfig();
|
|
|
|
};
|
|
|
|
|
|
|
|
void show(void){
|
|
|
|
lcdClear();
|
|
|
|
lcdPrint("time:"); lcdPrintInt(globalconfig.time); lcdNl();
|
|
|
|
lcdPrint("btrig:"); lcdPrintInt(globalconfig.backlighttrigger); lcdNl();
|
|
|
|
lcdPrint("bval:"); lcdPrintInt(globalconfig.backlightvalue); lcdNl();
|
|
|
|
lcdPrint("lcd:"); lcdPrintInt(globalconfig.lcdstate); lcdNl();
|
|
|
|
lcdPrint("priv:"); lcdPrintInt(globalconfig.privacy); lcdNl();
|
|
|
|
lcdRefresh();
|
|
|
|
};
|
|
|
|
|
|
|
|
void lcdmirror(void){
|
2011-07-26 23:15:52 +00:00
|
|
|
lcdToggleFlag(LCD_MIRRORX);
|
2011-07-26 22:57:36 +00:00
|
|
|
};
|