Added a GPIO to power on/off for external I2C sensor(s) (with LEDs)

Dependencies:   UniGraphic mbed vt100

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers edge_mgr.h Source File

edge_mgr.h

00001 #ifndef _EDGE_MGR_H_
00002 #define _EDGE_MGR_H_
00003 #include "edge_sensor.h"
00004 
00005 void   init_display(void) ;
00006 void   init_sensors(void) ;
00007 void   enable_sensors(void) ;
00008 void   disable_sensors(void) ;
00009 int    init_edge_attribute(void) ;
00010 void   edge_splash(void) ;
00011 void   edge_loop(uint32_t tick_count) ;
00012 void   reboot_edge(void) ;
00013 void   draw_chart_frame(void) ;
00014 
00015 /* following two functions are for test power on/off of color sensor */
00016 void   enable_color_sensor(void) ;
00017 void   disable_color_sensor(void) ; 
00018 
00019 extern ILI9341         *display ;
00020 extern char             *reset_reason_str ;
00021 extern edge_sensor      *sensor[] ;
00022 extern bool             verbos ;
00023 extern int              display_mode ;
00024 extern int              edge_mgr_status ;
00025 extern bool             reboot_requested ;
00026 
00027 extern const unsigned char Arial12x12[] ;
00028 extern const unsigned char Arial24x23[] ;
00029 extern const unsigned char Arial28x28[] ;
00030 
00031 #define EDGE_MGR_INIT    0
00032 #define EDGE_MGR_RUNNING 1
00033 
00034 #endif /* _EDGE_MGR_H_ */