From abc5db04b2d98855a1a0868aa79d6ed9f0cedcfb Mon Sep 17 00:00:00 2001 From: harald42 Date: Wed, 18 May 2016 08:17:47 +0200 Subject: [PATCH] bugfix start i2c and printf --- examples/osd/arduino-bh1750/sketch.pde | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/osd/arduino-bh1750/sketch.pde b/examples/osd/arduino-bh1750/sketch.pde index 30b259b02..775b96bce 100644 --- a/examples/osd/arduino-bh1750/sketch.pde +++ b/examples/osd/arduino-bh1750/sketch.pde @@ -31,6 +31,7 @@ void setup (void) pinMode(LED_PIN, OUTPUT); digitalWrite(LED_PIN, HIGH); // BH1750 sensor + Wire.begin(); lightMeter.begin(); // init coap resourcen rest_init_engine (); @@ -44,6 +45,6 @@ void loop (void) { mcu_sleep_off(); lux = lightMeter.getLightLevel(); + printf("Lux: %d\n",lux); mcu_sleep_on(); - printf("Lux: %d",lux); }