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

no matching functions for call 'CountUpDownTimer::SetTimer(int, int, int) #32

Open
ABartholsen opened this issue Mar 18, 2021 · 6 comments

Comments

@ABartholsen
Copy link

Why do i get "no matching functions for call ..." when running my code when using the CountUpDownTimer?

I get it when i try MeisterMax's code as well:

#include <CountUpDownTimer.h>
#include "LiquidCrystal.h"

CountUpDownTimer T(DOWN);
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {

lcd.begin(16, 2);
T.SetTimer(0, 2, 45);
T.StartTimer();

}

void loop() {

T.Timer();

lcd.setCursor(0, 0);
lcd.print(T.ShowSeconds());
lcd.setCursor(0, 1);
lcd.print(T.ShowMinutes());

}

I suspect i am doing something wrong with importing the library or something. I am a bit of a noob, so I might be messing something trivial up. Just saying :P

@ABartholsen
Copy link
Author

Has the library been changed, is that what is going on?

@AndrewMascolo
Copy link
Owner

AndrewMascolo commented Mar 18, 2021 via email

@ABartholsen
Copy link
Author

Yes, that seems to do it! Thanks mate :)

@ABartholsen
Copy link
Author

Well the program compiles and is downloaded fine now, (my own program and not the example I posted) but somehow the task the program is suppose to execute is not run. It was suppose to run after 10 seconds. Not quite sure why. I am thinking it might be worth trying to run the program with the old library. Is it available somewhere?

@ABartholsen
Copy link
Author

I saw that the older versions are found under commits, but cant download the zip. How do i get to download it?

@AndrewMascolo
Copy link
Owner

I don’t think they can be downloaded. I didn’t really change anything else so I’m not sure why it doesn’t work. You are welcome to play with the library as I don’t really maintain it anymore. If you figure out what’s wrong, I’ll add those fixes to the library.

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