Pages: [1]   Go Down
Author Topic: util/delay.h library reference is not working with DUE  (Read 568 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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...

Thank you for your help.
Logged

Earth
Offline Offline
Sr. Member
****
Karma: 13
Posts: 312
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: