Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
HMI.h
00001 #include "mbed.h" 00002 #include "ADA326.h" 00003 00004 extern bool modeSleep; 00005 00006 extern volatile bool RE_detected; 00007 extern bool display_on; 00008 extern bool trigger_standby; 00009 extern bool next_screen; 00010 extern bool renew_screen; 00011 00012 extern DigitalOut led; 00013 extern InterruptIn button; 00014 extern Timer timer; 00015 extern Ticker ticker; 00016 extern Serial pc; 00017 extern Ada326 lcd; 00018 00019 namespace FSM_Button { 00020 // Finite state machine for debouncing button (preventing unstable response) 00021 enum {State_Idle = 0, State_Debounce, State_Pressed, State_Released, State_Wait}; 00022 const int NB_BUTTON_STATE = 5; 00023 unsigned int button_idle(void); 00024 unsigned int button_debounce(void); 00025 unsigned int button_pressed(void); 00026 unsigned int button_released(void); 00027 unsigned int button_wait(void); 00028 } 00029 namespace FSM_Display { 00030 // Finite state machine for the change of display (Turn off -> Turn on -> Sensor data -> Turn off). 00031 enum Display_Type {Light_Data, Gnd_Temperature, Gnd_Humidity, Air_Temperature, Air_Humidity}; 00032 enum {State_Idle = 0, State_Activate,State_Standby, State_Write}; 00033 const int NB_DISPLAY_STATE = 4; 00034 unsigned int display_standby(void); 00035 unsigned int display_activate(void); 00036 unsigned int display_idle(void); 00037 unsigned int display_write(void); 00038 00039 } 00040 00041
Generated on Wed Aug 17 2022 05:29:14 by
1.7.2