TinyCircuits

TinyCircuits Products => Tiny Arcade => Topic started by: gef3233 on January 17, 2017, 10:57:00 AM

Title: Displaying the weather in the TinyArcade
Post by: gef3233 on January 17, 2017, 10:57:00 AM
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

(https://github.com/pjimenezmateo/tinyarcade-weather-display/blob/master/preview.gif?raw=true)

All the code and the instructions are in github: https://github.com/pjimenezmateo/tinyarcade-weather-display
Title: Re: Displaying the weather in the TinyArcade
Post by: TinyCircuits on February 05, 2017, 12:10:47 PM
Awesome!  Going to share this on our Facebook page!

Thanks!

Ken
TinyCircuits
Title: Re: Displaying the weather in the TinyArcade
Post by: Equinox on March 29, 2017, 02:24:17 PM
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
Title: Re: Displaying the weather in the TinyArcade
Post by: kuran_kuran on March 30, 2017, 09:28:06 AM
Download the Time library on your library folder.
https://github.com/PaulStoffregen/Time
Title: Re: Displaying the weather in the TinyArcade
Post by: Equinox on March 30, 2017, 10:10:31 AM
Download the Time library on your library folder.
https://github.com/PaulStoffregen/Time
I did. Same error. :(
Title: Re: Displaying the weather in the TinyArcade
Post by: Ben Rose on March 30, 2017, 06:14:33 PM
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.
Title: Re: Displaying the weather in the TinyArcade
Post by: Equinox on March 30, 2017, 09:16:43 PM
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. :(
Title: Re: Displaying the weather in the TinyArcade
Post by: Ben Rose on March 31, 2017, 01:57:50 PM
Ah- you should be able to get back to the bootloader by holding both buttons while powering up.
Title: Re: Displaying the weather in the TinyArcade
Post by: Equinox on March 31, 2017, 02:13:54 PM
Yeah, I did that, and just reloaded the ArcadeMenu sketch.