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

'class SimpleTimer' has no member named 'setTimeout' #5

Open
woody2010 opened this issue Nov 6, 2019 · 7 comments
Open

'class SimpleTimer' has no member named 'setTimeout' #5

woody2010 opened this issue Nov 6, 2019 · 7 comments

Comments

@woody2010
Copy link

When I try to compile the arduino code I get the following error: 'class SimpleTimer' has no member named 'setTimeout'

I have installed version 1.0.0 of SimpleTimer. Am I missing something?

@GeoffAtHome
Copy link

GeoffAtHome commented Nov 15, 2019

@woody2010 I am having the same problem. Have you got a solution yet?

I believe that it is caused by the wrong version of SimpleTimer. The version you are using does not support the methods setTimeout() or run(). The version you need is here:
https://playground.arduino.cc/Code/SimpleTimer/

How you replace the one you have loaded with this beats me at the moment but when I find out I will let you know.

@GeoffAtHome
Copy link

Download SimpleTimer from here (the zip file).

Extract SimpleTimer.cpp and SimpleTimer.h and place then in the same folder as your project.

Change the line from:
#include <SimpleTimer.h>

to
#include "SimpleTimer.h"

And recompile.

This probably isn't the best way to solve the problem but works for me.

@woody2010
Copy link
Author

woody2010 commented Nov 15, 2019 via email

@GeoffAtHome
Copy link

@woody2010 thanks. I didn't see the Holiday 2.0 code.

@woody2010
Copy link
Author

woody2010 commented Nov 15, 2019 via email

@woody2010
Copy link
Author

woody2010 commented Nov 15, 2019 via email

@GeoffAtHome
Copy link

I'll let you know how I get on. Will probably finish over the weekend.

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

2 participants