Added a GPIO to power on/off for external I2C sensor(s) (with LEDs)
Dependencies: UniGraphic mbed vt100
18-Jun-2018 外部センサの電源オン・オフ機能は下位互換の為に無効になっていました。 この版で再度有効にしました。
edge_utils/edge_mgr.h@0:846e2321c637, 2018-04-13 (annotated)
- Committer:
- Rhyme
- Date:
- Fri Apr 13 04:19:23 2018 +0000
- Revision:
- 0:846e2321c637
power to color sensor on/off test OK. Currently the function is disabled.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rhyme | 0:846e2321c637 | 1 | #ifndef _EDGE_MGR_H_ |
Rhyme | 0:846e2321c637 | 2 | #define _EDGE_MGR_H_ |
Rhyme | 0:846e2321c637 | 3 | #include "edge_sensor.h" |
Rhyme | 0:846e2321c637 | 4 | |
Rhyme | 0:846e2321c637 | 5 | void init_display(void) ; |
Rhyme | 0:846e2321c637 | 6 | void init_sensors(void) ; |
Rhyme | 0:846e2321c637 | 7 | void enable_sensors(void) ; |
Rhyme | 0:846e2321c637 | 8 | void disable_sensors(void) ; |
Rhyme | 0:846e2321c637 | 9 | int init_edge_attribute(void) ; |
Rhyme | 0:846e2321c637 | 10 | void edge_splash(void) ; |
Rhyme | 0:846e2321c637 | 11 | void edge_loop(uint32_t tick_count) ; |
Rhyme | 0:846e2321c637 | 12 | void reboot_edge(void) ; |
Rhyme | 0:846e2321c637 | 13 | void draw_chart_frame(void) ; |
Rhyme | 0:846e2321c637 | 14 | |
Rhyme | 0:846e2321c637 | 15 | /* following two functions are for test power on/off of color sensor */ |
Rhyme | 0:846e2321c637 | 16 | void enable_color_sensor(void) ; |
Rhyme | 0:846e2321c637 | 17 | void disable_color_sensor(void) ; |
Rhyme | 0:846e2321c637 | 18 | |
Rhyme | 0:846e2321c637 | 19 | extern ILI9341 *display ; |
Rhyme | 0:846e2321c637 | 20 | extern char *reset_reason_str ; |
Rhyme | 0:846e2321c637 | 21 | extern edge_sensor *sensor[] ; |
Rhyme | 0:846e2321c637 | 22 | extern bool verbos ; |
Rhyme | 0:846e2321c637 | 23 | extern int display_mode ; |
Rhyme | 0:846e2321c637 | 24 | extern int edge_mgr_status ; |
Rhyme | 0:846e2321c637 | 25 | extern bool reboot_requested ; |
Rhyme | 0:846e2321c637 | 26 | |
Rhyme | 0:846e2321c637 | 27 | extern const unsigned char Arial12x12[] ; |
Rhyme | 0:846e2321c637 | 28 | extern const unsigned char Arial24x23[] ; |
Rhyme | 0:846e2321c637 | 29 | extern const unsigned char Arial28x28[] ; |
Rhyme | 0:846e2321c637 | 30 | |
Rhyme | 0:846e2321c637 | 31 | #define EDGE_MGR_INIT 0 |
Rhyme | 0:846e2321c637 | 32 | #define EDGE_MGR_RUNNING 1 |
Rhyme | 0:846e2321c637 | 33 | |
Rhyme | 0:846e2321c637 | 34 | #endif /* _EDGE_MGR_H_ */ |