TinyScreen+ and RTC Tinyshield

Started by KJinator, May 11, 2018, 01:08:17 AM

Previous topic - Next topic

KJinator

*
Newbie
Posts: 1
Logged
I have been trying to run the RTC example using the TinyScreen+, and my computer cannot find avr/sleep.h and air/power.h.  Is this due to the processor type, meaning that the RTC cannot be used with a TinyScreen+?

JonahEmbri

*
Newbie
Posts: 4
I dislike programming. I love tech. So here I am.
Location: 80634
Logged
Quote from: KJinator on May 11, 2018, 01:08:17 AM
I have been trying to run the RTC example using the TinyScreen+, and my computer cannot find avr/sleep.h and air/power.h.  Is this due to the processor type, meaning that the RTC cannot be used with a TinyScreen+?

I had a similar problem with an older TinyScreen. I am guessing you have made sure the files are in the correct folders?

Try changing #include <sleep.h> and #include <power.h> to #include "sleep.h" and #include "power.h" (these lines should be located near the top of the Arduino file.

This worked for my older TinyScreen. I don't know why, so someone feel free to explain.
Jonah Embry
Founder of Embry Industries

SMF spam blocked by CleanTalk