TinyScreen+ and RTC Tinyshield

KJinator

  • Newbie
  • *
    • Posts: 1
    • View Profile
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.
    • View Profile
    • Embry Industries
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