Move lighting logic in to its own class. Add definition guards around classes.
This commit is contained in:
parent
0052ac0169
commit
a3068a2d15
6 changed files with 111 additions and 64 deletions
|
@ -1,3 +1,5 @@
|
|||
#ifndef Weather_h
|
||||
#define Weather_h
|
||||
#include <Arduino.h>
|
||||
|
||||
#define WEATHER_URL "http://api.openweathermap.org/data/2.5/weather?lat=%s&lon=%s&appid=%s"
|
||||
|
@ -22,4 +24,5 @@ class Weather{
|
|||
void update();
|
||||
int getCloudCover() { return _cloudCover; }
|
||||
WeatherCondition getCondition() { return _condition; }
|
||||
};
|
||||
};
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue