Move lighting logic in to its own class. Add definition guards around classes.

This commit is contained in:
Robert Marshall 2018-10-07 15:20:14 +01:00
parent 0052ac0169
commit a3068a2d15
6 changed files with 111 additions and 64 deletions

View file

@ -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