|
@@ -44,8 +44,6 @@ const table_state_t stateTable[] = {
|
|
|
/* display wdt */
|
|
|
{stShowWDay, evDisplayWDT, stShowTime, showTime, NULL},
|
|
|
{stShowDM, evDisplayWDT, stShowTime, showTime, NULL},
|
|
|
- {stShowMDay, evDisplayWDT, stShowTime, showTime, NULL},
|
|
|
- {stShowMon, evDisplayWDT, stShowTime, showTime, NULL},
|
|
|
{stShowYear, evDisplayWDT, stShowTime, showTime, NULL},
|
|
|
//{stShowBright, evDisplayWDT, stShowTime, showTime, NULL},
|
|
|
{stShowHumidity, evDisplayWDT, stShowTime, showTime, NULL},
|
|
@@ -57,8 +55,6 @@ const table_state_t stateTable[] = {
|
|
|
{stShowMMSS, evNewSecond, stNoChange, showMMSS, NULL},
|
|
|
{stShowWDay, evRefreshCal, stNoChange, showWD, NULL},
|
|
|
{stShowDM, evRefreshCal, stNoChange, showDayMon, NULL},
|
|
|
- {stShowMDay, evRefreshCal, stNoChange, showDay, NULL},
|
|
|
- {stShowMon, evRefreshCal, stNoChange, showMonth, NULL},
|
|
|
{stShowYear, evRefreshCal, stNoChange, showYear, NULL},
|
|
|
// {stShowYear, evBTN1Pressed, stShowBright, showBright, NULL},
|
|
|
{stShowBright, evBTN1Pressed, stShowTime, showTime, NULL},
|
|
@@ -81,40 +77,35 @@ const table_state_t stateTable[] = {
|
|
|
{stSetMM, evDisplayWDT, stShowTime, showTime, NULL},
|
|
|
|
|
|
/* set calendar */
|
|
|
-/*
|
|
|
- {stShowWDM, evBTN1Holded, stSetWDay, setDateBegin, setWDayBegin},
|
|
|
- {stSetWDay, evBTN1Holded, stShowWDM, setDateEnd, showWDM},
|
|
|
- {stSetMDay, evBTN1Holded, stShowWDM, setDateEnd, showWDM},
|
|
|
- {stSetMon, evBTN1Holded, stShowWDM, setDateEnd, showWDM},
|
|
|
- {stSetWDay, evBTN1Pressed, stSetMDay, setMDayBegin, NULL},
|
|
|
- {stSetMDay, evBTN1Pressed, stSetMon, setMonthBegin, NULL},
|
|
|
- {stSetMon, evBTN1Pressed, stSetWDay, setWDayBegin, NULL},
|
|
|
- {stSetWDay, evBTN2Pressed, stNoChange, setDecWDay, setWDMShow},
|
|
|
- {stSetWDay, evBTN3Pressed, stNoChange, setIncWDay, setWDMShow},
|
|
|
- {stSetMDay, evBTN2Pressed, stNoChange, setDecMDay, setWDMShow},
|
|
|
- {stSetMDay, evBTN3Pressed, stNoChange, setIncMDay, setWDMShow},
|
|
|
- {stSetMon, evBTN2Pressed, stNoChange, setDecMonth, setWDMShow},
|
|
|
- {stSetMon, evBTN3Pressed, stNoChange, setIncMonth, setWDMShow},
|
|
|
-
|
|
|
- {stShowYear, evBTN1Holded, stSetYear, setDateBegin, setYearBegin},
|
|
|
- {stSetYear, evBTN1Holded, stShowYear, setDateEnd, showYear},
|
|
|
- {stSetYear, evBTN2Pressed, stNoChange, setDecYear, setYearShow},
|
|
|
- {stSetYear, evBTN3Pressed, stNoChange, setIncYear, setYearShow},
|
|
|
-
|
|
|
- {stSetWDay, evDisplayWDT, stShowTime, showTime, NULL},
|
|
|
- {stSetMDay, evDisplayWDT, stShowTime, showTime, NULL},
|
|
|
+ // begin
|
|
|
+ {stShowWDay, evBTN1Holded, stSetWD, setDateBegin, setWDBegin},
|
|
|
+ {stShowDM, evBTN1Holded, stSetMD, setDateBegin, setMDBegin},
|
|
|
+ {stShowYear, evBTN1Holded, stSetYear, setDateBegin, setYearBegin},
|
|
|
+ // end
|
|
|
+ {stSetWD, evBTN1Holded, stShowWDay, setDateEnd, showWD},
|
|
|
+ {stSetMD, evBTN1Holded, stShowDM, setDateEnd, showDayMon},
|
|
|
+ {stSetMon, evBTN1Holded, stShowDM, setDateEnd, showDayMon},
|
|
|
+ {stSetYear, evBTN1Holded, stShowYear, setDateEnd, showYear},
|
|
|
+ // next
|
|
|
+ {stSetWD, evBTN1Pressed, stSetMD, setMDBegin, NULL},
|
|
|
+ {stSetMD, evBTN1Pressed, stSetMon, setMonthBegin, NULL},
|
|
|
+ {stSetMon, evBTN1Pressed, stSetYear, setYearBegin, NULL},
|
|
|
+ {stSetYear, evBTN1Pressed, stSetWD, setWDBegin, NULL},
|
|
|
+ // change
|
|
|
+ {stSetWD, evBTN2Pressed, stNoChange, setDecWDay, setWDShow},
|
|
|
+ {stSetWD, evBTN3Pressed, stNoChange, setIncWDay, setWDShow},
|
|
|
+ {stSetMD, evBTN2Pressed, stNoChange, setDecMDay, setDMShow},
|
|
|
+ {stSetMD, evBTN3Pressed, stNoChange, setIncMDay, setDMShow},
|
|
|
+ {stSetMon, evBTN2Pressed, stNoChange, setDecMonth, setDMShow},
|
|
|
+ {stSetMon, evBTN3Pressed, stNoChange, setIncMonth, setDMShow},
|
|
|
+ {stSetYear, evBTN2Pressed, stNoChange, setDecYear, setYearShow},
|
|
|
+ {stSetYear, evBTN3Pressed, stNoChange, setIncYear, setYearShow},
|
|
|
+ // WDT
|
|
|
+ {stSetWD, evDisplayWDT, stShowTime, showTime, NULL},
|
|
|
+ {stSetMD, evDisplayWDT, stShowTime, showTime, NULL},
|
|
|
{stSetMon, evDisplayWDT, stShowTime, showTime, NULL},
|
|
|
{stSetYear, evDisplayWDT, stShowTime, showTime, NULL},
|
|
|
|
|
|
- {stShowWDay, evBTN3Pressed, stNoChange, incWDay, showWDM},
|
|
|
- {stShowMDay, evBTN3Pressed, stNoChange, incMDay, showWDM},
|
|
|
- {stShowMon, evBTN3Pressed, stNoChange, incMonth, showWDM},
|
|
|
- {stShowYear, evBTN3Pressed, stNoChange, incYear, showYear},
|
|
|
- {stShowWDay, evBTN2Pressed, stNoChange, decWDay, showWDM},
|
|
|
- {stShowMDay, evBTN2Pressed, stNoChange, decMDay, showWDM},
|
|
|
- {stShowMon, evBTN2Pressed, stNoChange, decMonth, showWDM},
|
|
|
- {stShowYear, evBTN2Pressed, stNoChange, decYear, showYear},
|
|
|
-*/
|
|
|
/* set bright */
|
|
|
// {stShowBright, evBTN3Pressed, stNoChange, incBright, showBright},
|
|
|
// {stShowBright, evBTN2Pressed, stNoChange, decBright, showBright},
|