bugfix start i2c and printf
This commit is contained in:
parent
a95b0c9d46
commit
abc5db04b2
|
@ -31,6 +31,7 @@ void setup (void)
|
||||||
pinMode(LED_PIN, OUTPUT);
|
pinMode(LED_PIN, OUTPUT);
|
||||||
digitalWrite(LED_PIN, HIGH);
|
digitalWrite(LED_PIN, HIGH);
|
||||||
// BH1750 sensor
|
// BH1750 sensor
|
||||||
|
Wire.begin();
|
||||||
lightMeter.begin();
|
lightMeter.begin();
|
||||||
// init coap resourcen
|
// init coap resourcen
|
||||||
rest_init_engine ();
|
rest_init_engine ();
|
||||||
|
@ -44,6 +45,6 @@ void loop (void)
|
||||||
{
|
{
|
||||||
mcu_sleep_off();
|
mcu_sleep_off();
|
||||||
lux = lightMeter.getLightLevel();
|
lux = lightMeter.getLightLevel();
|
||||||
|
printf("Lux: %d\n",lux);
|
||||||
mcu_sleep_on();
|
mcu_sleep_on();
|
||||||
printf("Lux: %d",lux);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue