Color sensor reset at the end of calibration added. sensor id auto assignment was changed to be a fixed value assignment to avoid sensor id shift when some sensor is absent.

Dependencies:   UniGraphic mbed vt100

Committer:
Rhyme
Date:
Fri Feb 23 05:40:22 2018 +0000
Revision:
0:ce97f6d34336
color sensor reset was added at the end of calibration

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Rhyme 0:ce97f6d34336 1 #ifndef _EDGE_MGR_H_
Rhyme 0:ce97f6d34336 2 #define _EDGE_MGR_H_
Rhyme 0:ce97f6d34336 3 #include "edge_sensor.h"
Rhyme 0:ce97f6d34336 4
Rhyme 0:ce97f6d34336 5 void init_display(void) ;
Rhyme 0:ce97f6d34336 6 void init_sensors(void) ;
Rhyme 0:ce97f6d34336 7 void enable_sensors(void) ;
Rhyme 0:ce97f6d34336 8 void disable_sensors(void) ;
Rhyme 0:ce97f6d34336 9 int init_edge_attribute(void) ;
Rhyme 0:ce97f6d34336 10 void edge_splash(void) ;
Rhyme 0:ce97f6d34336 11 void edge_loop(uint32_t tick_count) ;
Rhyme 0:ce97f6d34336 12 void reboot_edge(void) ;
Rhyme 0:ce97f6d34336 13 void draw_chart_frame(void) ;
Rhyme 0:ce97f6d34336 14
Rhyme 0:ce97f6d34336 15 extern ILI9341 *display ;
Rhyme 0:ce97f6d34336 16 extern char *reset_reason_str ;
Rhyme 0:ce97f6d34336 17 extern edge_sensor *sensor[] ;
Rhyme 0:ce97f6d34336 18 extern bool verbos ;
Rhyme 0:ce97f6d34336 19 extern int display_mode ;
Rhyme 0:ce97f6d34336 20 extern int edge_mgr_status ;
Rhyme 0:ce97f6d34336 21 extern bool reboot_requested ;
Rhyme 0:ce97f6d34336 22
Rhyme 0:ce97f6d34336 23 extern const unsigned char Arial12x12[] ;
Rhyme 0:ce97f6d34336 24 extern const unsigned char Arial24x23[] ;
Rhyme 0:ce97f6d34336 25 extern const unsigned char Arial28x28[] ;
Rhyme 0:ce97f6d34336 26
Rhyme 0:ce97f6d34336 27 #define EDGE_MGR_INIT 0
Rhyme 0:ce97f6d34336 28 #define EDGE_MGR_RUNNING 1
Rhyme 0:ce97f6d34336 29
Rhyme 0:ce97f6d34336 30 #endif /* _EDGE_MGR_H_ */