Displaying the weather in the TinyArcade

Started by gef3233, January 17, 2017, 10:57:00 AM

Previous topic - Next topic

gef3233

**
Jr. Member
Posts: 5
Logged
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: 108
Logged
Awesome!  Going to share this on our Facebook page!

Thanks!

Ken
TinyCircuits

Equinox

**
Jr. Member
Posts: 5
Logged
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

kuran_kuran

***
Full Member
Posts: 21
Location: Tokyo, Japan
Logged


Ben Rose

Administrator
*****
Hero Member
Posts: 392
Logged
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
Logged
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. :(

Ben Rose

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

Equinox

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

SMF spam blocked by CleanTalk