davepl / DavesGarageLEDSeries

Code for Tutorial series at http://YouTube.com/c/DavesGarage
171 stars 71 forks source link

Using Arduino Mega2560 #6

Open chrisdiphoorn opened 1 year ago

chrisdiphoorn commented 1 year ago

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 // For time-of-day

changed tm tv = {0} -----> timeval tv = { 0 };