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
Awesome! Going to share this on our Facebook page!
Thanks!
Ken
TinyCircuits
Got an error when trying to upload this:
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
Download the Time library on your library folder.
https://github.com/PaulStoffregen/Time
Quote from: kuran_kuran on March 30, 2017, 09:28:06 AM
Download the Time library on your library folder.
https://github.com/PaulStoffregen/Time
I did. Same error. :(
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.
Quote from: 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.
That worked, and the code uploaded correctly...then promptly bricked the system. I'm trying to recover it now. :(
Ah- you should be able to get back to the bootloader by holding both buttons while powering up.
Yeah, I did that, and just reloaded the ArcadeMenu sketch.