cybergibbons / DS2482_OneWire

A OneWire library using the DS2482 I2C->1-Wire bridge
29 stars 25 forks source link

solution: arduino-1.8.1 and problem with delayMicroseconds #3

Open ivanpiffer opened 7 years ago

ivanpiffer commented 7 years ago

to avoid the error "OneWire.cpp:122:23: error: 'delayMicroseconds' was not declared in this scope" add the line

include "Arduino.h" to OneWire.cpp

the result is: "#include "OneWire.h"

include

//#include "Arduino.h"

// Constructor with no parameters for compatability with OneWire lib OneWire::OneWire()"... ecc