1
TinyDuino Processors & TinyShields / Arduino IDE not compiling Real-Time Clock TinyShield Arduino sketch
« on: February 16, 2021, 02:58:26 AM »
I downloaded the Real-Time Clock TinyShield Arduino sketch from this site ( RTC_TinyShield_example.zip ) and tried to run it on my TinyZero board + Real-Time Clock TinyShield. I'm using an Arduino IDE ver. 1.8.13 and so far have not been able to compile the sketch as downloaded from this site. I am getting the following error message:
RTC_TinyShield_example:20:10: fatal error: avr/power.h: No such file or directory
#include <avr/power.h>
^~~~~~~~~~~~~
compilation terminated.
On the include line:
20 #include <avr/power.h>
Even when I verified the file power.h is included with the downloaded sketch in the specified "avr" sub folder.
Is there a compatibility issue in newer versions of the Arduino IDE? should I make a change to the code of the sketch in order to make it work or maybe the settings of the Arduino IDE?
This is frustrating. I would appreciate if someone could come up with a solution. I'll provide any information needed. Thanks in advance.
RTC_TinyShield_example:20:10: fatal error: avr/power.h: No such file or directory
#include <avr/power.h>
^~~~~~~~~~~~~
compilation terminated.
On the include line:
20 #include <avr/power.h>
Even when I verified the file power.h is included with the downloaded sketch in the specified "avr" sub folder.
Is there a compatibility issue in newer versions of the Arduino IDE? should I make a change to the code of the sketch in order to make it work or maybe the settings of the Arduino IDE?
This is frustrating. I would appreciate if someone could come up with a solution. I'll provide any information needed. Thanks in advance.