Using Arduino Mega2560
chrisdiphoorn opened this issue · comments
Updated the code to support Arduino Mega2640 as i could not get my esp32 AI-Thinker to work.
These were the changes i need make to get daves code working on Mega 2560 - OK :)
Using the Arduino Library Manager,
Install "Time by Michael Margolis"
Install "ArduinoSTL by Michael Matera" - https://github.com/mike-matera/ArduinoSTL)
Update parts of Daves code with these changes:
#include "ArduinoSTL.h" // Added this library to support vectors
//#include <sys/time.h> // comment this out
#include <TimeLib.h> // For time-of-day
changed tm tv = {0} -----> timeval tv = { 0 };