claws / BH1750

An Arduino library for the digital light sensor breakout boards containing the BH1750FVI IC
MIT License
249 stars 108 forks source link

delay.h missing #6

Closed lurecords closed 8 years ago

lurecords commented 8 years ago

I'm trying to interface the sensor to a nodemcu and compiler warns that util/delay.h is missing. Please help

claws commented 8 years ago

Hi,

I built this for use with Arduino using the Arduino IDE. I have not used it or tested it with nodemcu.

It sounds like others have encountered a similar issue using Arduino libraries on the ESP8266. Perhaps you could modify your code similarly to investigate further. If you get it working I'll gladly accept a PR.

dvzzz commented 8 years ago

I remove #include <util/delay.h> and replace _delay_ms(10) on delay(10).

This works for me.