Added a GPIO to power on/off for external I2C sensor(s) (with LEDs)
Dependencies: UniGraphic mbed vt100
18-Jun-2018 外部センサの電源オン・オフ機能は下位互換の為に無効になっていました。 この版で再度有効にしました。
Revision 1:8d65cfc3a2e2, committed 2018-06-18
- Comitter:
- Rhyme
- Date:
- Mon Jun 18 01:56:00 2018 +0000
- Parent:
- 0:846e2321c637
- Commit message:
- External sensor power on/off function enabled. (Previously disabled)
Changed in this revision
edge_utils/edge_mgr.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 846e2321c637 -r 8d65cfc3a2e2 edge_utils/edge_mgr.cpp --- a/edge_utils/edge_mgr.cpp Fri Apr 13 04:19:23 2018 +0000 +++ b/edge_utils/edge_mgr.cpp Mon Jun 18 01:56:00 2018 +0000 @@ -378,7 +378,7 @@ void init_sensors(void) { printf("=== Initializing Sensor(s) ===\n") ; -#if 0 +#if 1 color_en = new DigitalOut(PIN_COLOR_EN, 0) ; *color_en = 0 ; /* enable */ *color_en = 1 ; /* disable */