Hi,
I'm using a library from Adafruit for TCS34725 color sensor and the compiler fails when I try to compile for DUE, the error says:
Adafruit_TCS34725.cpp:19: fatal error: util/delay.h: No such file or directory
compilation terminated.
The version of the IDE is Arduino nightly, if I change the micro to MEGA the error is gone...
The error is correct. util/delay.h is part of the AVR library and the Due is not based on AVR but rather ARM. If the TCS34725 library depends on that AVR header then you will probably have to modify it. There are plenty of delay functions built-in for the Due so you can probably find a way to modify the library to not need any additional headers for delaying.
Collin80:
The error is correct. util/delay.h is part of the AVR library and the Due is not based on AVR but rather ARM. If the TCS34725 library depends on that AVR header then you will probably have to modify it. There are plenty of delay functions built-in for the Due so you can probably find a way to modify the library to not need any additional headers for delaying.
where can i find these in built functions for the due?? i would like to modify a certain library..(adafruit fingerprint) for the due.. any help would be appreciated..
Collin80:
The error is correct. util/delay.h is part of the AVR library and the Due is not based on AVR but rather ARM. If the TCS34725 library depends on that AVR header then you will probably have to modify it. There are plenty of delay functions built-in for the Due so you can probably find a way to modify the library to not need any additional headers for delaying.
where can i find these in built functions for the due?? i would like to modify a certain library..(adafruit fingerprint) for the due.. any help would be appreciated..
In the sources? Its open source, you have the sources, have a look/grep through them.