1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #pragma once
- #ifndef EVENT_LIST_H
- #define EVENT_LIST_H
- /* коды событий */
- typedef enum {
- eventNull = 0x00,
- evNewSecond,
- evBTN1Pressed,
- evBTN2Pressed,
- evBTN3Pressed,
- evBTN1Holded,
- evBTN2Holded,
- evBTN3Holded,
- evRefreshCal,
- #ifdef USE_DHT
- evShTime,
- evShTemp,
- evShHum,
- #endif // USE_DHT
- evDisplayWDT
- } es_event_t;
- /* коды состояний */
- typedef enum {
- stNoChange = 0x00,
- stShowTime,
- stShowMMSS,
- stShowWDay,
- stShowMDay,
- stShowMon,
- stShowYear,
- #ifdef USE_BRIGHT_CONTROL
- stShowBright,
- #endif // USE_BRIGHT_CONTROL
- #ifdef USE_DHT
- stShowTemperature,
- stShowHumidity,
- #endif // USE_DHT
- stSetHH,
- stSetMM,
- /* end */
- stLastState
- } es_state_t;
- #ifndef NULL
- #define NULL ((void*)0)
- #endif
- #endif
|