Added a GPIO to power on/off for external I2C sensor(s) (with LEDs)
Dependencies: UniGraphic mbed vt100
18-Jun-2018 外部センサの電源オン・オフ機能は下位互換の為に無効になっていました。 この版で再度有効にしました。
Diff: edge_utils/edge_mgr.cpp
- Revision:
- 1:8d65cfc3a2e2
- Parent:
- 0:846e2321c637
--- 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 */
La Suno