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,5 +1,5 @@
#ifndef _DAYLIGHT_h
#define _DAYLIGHT_h
#ifndef NaturalLight_h
#define NaturalLight_h
#include <Arduino.h>
#define SOLAR_EVENT_URL "http://api.sunrise-sunset.org/json?lat=%s&lng=%s&formatted=0"