Displaying the weather in the TinyArcade

gef3233

  • Newbie
  • *
    • Posts: 3
    • View Profile
I just wanted to share with you a project I developed over the past few days, now you can use your TinyArcade as a weather display :D


All the code and the instructions are in github: https://github.com/pjimenezmateo/tinyarcade-weather-display


TinyCircuits

  • Administrator
  • Hero Member
  • *****
    • Posts: 107
    • View Profile
    • TinyCircuits Homepage
Awesome!  Going to share this on our Facebook page!

Thanks!

Ken
TinyCircuits


Equinox

  • Jr. Member
  • **
    • Posts: 5
    • View Profile
Got an error when trying to upload this:

Code: [Select]
Arduino: 1.8.2, Board: "TinyScreen+, TinyArcade Menu"

/tinyarcade-weather-display/weather.ino/weather/weather.ino: In function 'void drawWatch()':
weather:3310: error: 'second' was not declared in this scope
   float secondsAngle = second() / float(60);
                               ^
weather:3311: error: 'minute' was not declared in this scope
   float minutesAngle = (minute() + secondsAngle) / float(60);
                                ^
weather:3312: error: 'hour' was not declared in this scope
   float hoursAngle   = (hour() % 12 + hoursAngle) / float(12);
                              ^
/tinyarcade-weather-display/weather.ino/weather/weather.ino: In function 'info splitCommand(String)':
weather:3442: error: 'setTime' was not declared in this scope
   setTime(hours, minutes, seconds, 23, 02, 1991);
                                                ^
exit status 1
'second' was not declared in this scope




Ben Rose

  • Administrator
  • Hero Member
  • *****
    • Posts: 342
    • View Profile
Not sure how the original is compiling- try including '<TimeLib.h>', it usually helps avoid conflicts between the Time library and the standard time.h file.


Equinox

  • Jr. Member
  • **
    • Posts: 5
    • View Profile
Not sure how the original is compiling- try including '<TimeLib.h>', it usually helps avoid conflicts between the Time library and the standard time.h file.
That worked, and the code uploaded correctly...then promptly bricked the system. I'm trying to recover it now. :(


Ben Rose

  • Administrator
  • Hero Member
  • *****
    • Posts: 342
    • View Profile
Ah- you should be able to get back to the bootloader by holding both buttons while powering up.


Equinox

  • Jr. Member
  • **
    • Posts: 5
    • View Profile
Yeah, I did that, and just reloaded the ArcadeMenu sketch.


 

SMF spam blocked by CleanTalk