Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Arduino Mega2560 #6

Open
chrisdiphoorn opened this issue Jan 5, 2023 · 0 comments
Open

Using Arduino Mega2560 #6

chrisdiphoorn opened this issue Jan 5, 2023 · 0 comments

Comments

@chrisdiphoorn
Copy link

chrisdiphoorn commented Jan 5, 2023

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 };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant