TinyCircuits

TinyScreen+ and RTC Tinyshield

TinyScreen+ and RTC Tinyshield
« 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+?

JonahEmbri

  • *
  • 4
  • I dislike programming. I love tech. So here I am.
    • View Profile
    • Embry Industries
Re: TinyScreen+ and RTC Tinyshield
« Reply #1 on: July 24, 2018, 02:13:45 PM »
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