ı’m trying to get output from UP3160TCS sensor. So in this example http://www.elecfreaks.com/wiki/index.php?title=Color_Sensor_Module says i need to use TimerOne library. When i accidentally* tried to use stable version of Arduino console it compiled easly. But in this 1.5.8 version i’ve seen these errors ;
When i use TimerOne-Master library i saw this ,
Build options changed, rebuilding all CS_Deneme.ino: In function 'void TSC_WB(int, int)': CS_Deneme.ino:107:10: error: 'class TimerOne' has no member named 'setPeriod' CS_Deneme.ino: In function 'void setup()': CS_Deneme.ino:114:10: error: 'class TimerOne' has no member named 'initialize' CS_Deneme.ino:115:10: error: 'class TimerOne' has no member named 'attachInterrupt' Error compiling.
In basic TimerOne library i saw
In file included from CS_Deneme.ino:25:0: C:\Users\Ozgur\Documents\Arduino\libraries\TimerOne-r11/TimerOne.h:39:20: fatal error: avr/io.h: No such file or directory #include <avr/io.h> ^ compilation terminated. Error compiling.
Do you guys have any clue that why would that happen ? Thanks a lot. Have a good day.
*edit: I’m using Due which isn’t working with stable 1.0.6 vers.