Open Steve-GB opened 8 years ago
When did you download the library?
Sent from my iPhone
On Apr 30, 2016, at 1:38 PM, Steve-GB notifications@github.com wrote:
Hello Andrew, I'm having some issues with my code, I wonder if you could take a look please. http://pastebin.com/8PF14JvL
This project drives an LED display with a RTC or a counting up stop watch. The display shows 00 00 01 and doesnt show anything more, I've addedd the serial debug in to watch it and that two just shows 0:0:1 and nothing more.
It seems the counter isnt running for some readon. I have even tried the examples and they stop after showing one second. do you have any ideas ? thanks,
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub
Try it now. Redownload the library first.
Sent from my iPhone
On Apr 30, 2016, at 1:38 PM, Steve-GB notifications@github.com wrote:
Hello Andrew, I'm having some issues with my code, I wonder if you could take a look please. http://pastebin.com/8PF14JvL
This project drives an LED display with a RTC or a counting up stop watch. The display shows 00 00 01 and doesnt show anything more, I've addedd the serial debug in to watch it and that two just shows 0:0:1 and nothing more.
It seems the counter isnt running for some readon. I have even tried the examples and they stop after showing one second. do you have any ideas ? thanks,
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub
Hello. Yes, thats done it. What was the fix ? Thanks.
Just some minor reordering in the code.
Sent from my iPhone
On May 1, 2016, at 5:49 AM, Steve-GB notifications@github.com wrote:
Hello. Yes, thats done it. What was the fix ? Thanks.
— You are receiving this because you commented. Reply to this email directly or view it on GitHub
HI, I've noticed another anomaly now. When T.StartTimer(); is first set and the time begins to count, if a T.ResetTimer(); is then performed the timer goes back to zero and starts again as expected. if then a T.PauseTimer() is then set, instead of pausing it returns to zero again and starts counting. if a second T.PauseTimer() is set then it ignores it and if a third is set the timer pauses. if then T.ResumeTimer() is set the timer doesnt resume. A reset will work though returning to zero as expected. then if another resume is set then it counts 1 and stops. and second resume and the timer starts to count again.
Sorry if this sounds a bit confusing, I'm using the same code as posted above.
If I reset the audrino and do not use the reset while the timer is running then all seems to be okay. It seems it doesnt like being reset whilst its running. it has to be paused then reset and then resumed.
Yes because the library uses flags to start, stop and pause. If you reset midway then the flag will not be set to do the action you require without doing the process over. If you reset you must start again, if you pause you must resume.
Sent from my iPhone
On May 1, 2016, at 11:17 AM, Steve-GB notifications@github.com wrote:
HI, I've noticed another anomaly now. When T.StartTimer(); is first set and the time begins to count, if a T.ResetTimer(); is then performed the timer goes back to zero and starts again as expected. if then a T.PauseTimer() is then set, instead of pausing it returns to zero again and starts counting. if a second T.PauseTimer() is set then it ignores it and if a third is set the timer pauses. if then T.ResumeTimer() is set the timer doesnt resume. A reset will work though returning to zero as expected. then if another resume is set then it counts 1 and stops. and second resume and the timer starts to count again.
Sorry if this sounds a bit confusing, I'm using the same code as posted above.
If I reset the audrino and do not use the reset while the timer is running then all seems to be okay. It seems it doesnt like being reset whilst its running. it has to be paused then reset and then resumed.
— You are receiving this because you commented. Reply to this email directly or view it on GitHub
HI,
Yes, That’s working thanks.
What was the fix ?
From: AndrewMascolo [mailto:notifications@github.com] Sent: 30 April 2016 20:44 To: AndrewMascolo/CountUpDownTimer CountUpDownTimer@noreply.github.com Cc: Steve-GB steveb@avtsuk.com; Author author@noreply.github.com Subject: Re: [AndrewMascolo/CountUpDownTimer] Timer Will not count up (#10)
Try it now. Redownload the library first.
Sent from my iPhone
On Apr 30, 2016, at 1:38 PM, Steve-GB notifications@github.com wrote:
Hello Andrew, I'm having some issues with my code, I wonder if you could take a look please. http://pastebin.com/8PF14JvL
This project drives an LED display with a RTC or a counting up stop watch. The display shows 00 00 01 and doesnt show anything more, I've addedd the serial debug in to watch it and that two just shows 0:0:1 and nothing more.
It seems the counter isnt running for some readon. I have even tried the examples and they stop after showing one second. do you have any ideas ? thanks,
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHubhttps://github.com/AndrewMascolo/CountUpDownTimer/issues/10#issuecomment-215989714
That makes sense. I'm keeping track of the state I want the timer in so if it's running and the reset is pressed, I'll issue the stop first, then reset and then start again.
Unless you want to put that in the library ?
Sent from my HTC
----- Reply message ----- From: "AndrewMascolo" notifications@github.com To: "AndrewMascolo/CountUpDownTimer" CountUpDownTimer@noreply.github.com Cc: "Steve-GB" steveb@avtsuk.com, "Author" author@noreply.github.com Subject: [AndrewMascolo/CountUpDownTimer] Timer Will not count up (#10) Date: Sun, May 1, 2016 18:21
Yes because the library uses flags to start, stop and pause. If you reset midway then the flag will not be set to do the action you require without doing the process over. If you reset you must start again, if you pause you must resume.
Sent from my iPhone
On May 1, 2016, at 11:17 AM, Steve-GB notifications@github.com wrote:
HI, I've noticed another anomaly now. When T.StartTimer(); is first set and the time begins to count, if a T.ResetTimer(); is then performed the timer goes back to zero and starts again as expected. if then a T.PauseTimer() is then set, instead of pausing it returns to zero again and starts counting. if a second T.PauseTimer() is set then it ignores it and if a third is set the timer pauses. if then T.ResumeTimer() is set the timer doesnt resume. A reset will work though returning to zero as expected. then if another resume is set then it counts 1 and stops. and second resume and the timer starts to count again.
Sorry if this sounds a bit confusing, I'm using the same code as posted above.
If I reset the audrino and do not use the reset while the timer is running then all seems to be okay. It seems it doesnt like being reset whilst its running. it has to be paused then reset and then resumed.
— You are receiving this because you commented. Reply to this email directly or view it on GitHub
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHubhttps://github.com/AndrewMascolo/CountUpDownTimer/issues/10#issuecomment-216056977
I will make a note of it and if more people have that issue, I will add it.
Sent from my iPhone
On May 2, 2016, at 7:53 AM, Steve-GB notifications@github.com wrote:
That makes sense. I'm keeping track of the state I want the timer in so if it's running and the reset is pressed, I'll issue the stop first, then reset and then start again.
Unless you want to put that in the library ?
Sent from my HTC
----- Reply message ----- From: "AndrewMascolo" notifications@github.com To: "AndrewMascolo/CountUpDownTimer" CountUpDownTimer@noreply.github.com Cc: "Steve-GB" steveb@avtsuk.com, "Author" author@noreply.github.com Subject: [AndrewMascolo/CountUpDownTimer] Timer Will not count up (#10) Date: Sun, May 1, 2016 18:21
Yes because the library uses flags to start, stop and pause. If you reset midway then the flag will not be set to do the action you require without doing the process over. If you reset you must start again, if you pause you must resume.
Sent from my iPhone
On May 1, 2016, at 11:17 AM, Steve-GB notifications@github.com wrote:
HI, I've noticed another anomaly now. When T.StartTimer(); is first set and the time begins to count, if a T.ResetTimer(); is then performed the timer goes back to zero and starts again as expected. if then a T.PauseTimer() is then set, instead of pausing it returns to zero again and starts counting. if a second T.PauseTimer() is set then it ignores it and if a third is set the timer pauses. if then T.ResumeTimer() is set the timer doesnt resume. A reset will work though returning to zero as expected. then if another resume is set then it counts 1 and stops. and second resume and the timer starts to count again.
Sorry if this sounds a bit confusing, I'm using the same code as posted above.
If I reset the audrino and do not use the reset while the timer is running then all seems to be okay. It seems it doesnt like being reset whilst its running. it has to be paused then reset and then resumed.
— You are receiving this because you commented. Reply to this email directly or view it on GitHub
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHubhttps://github.com/AndrewMascolo/CountUpDownTimer/issues/10#issuecomment-216056977 — You are receiving this because you commented. Reply to this email directly or view it on GitHub
I’ve not tried yet. But will your counter support two instances?
I will ultimately want two stop watches on the project.
From: AndrewMascolo [mailto:notifications@github.com] Sent: 01 May 2016 18:21 To: AndrewMascolo/CountUpDownTimer CountUpDownTimer@noreply.github.com Cc: Steve-GB steveb@avtsuk.com; Author author@noreply.github.com Subject: Re: [AndrewMascolo/CountUpDownTimer] Timer Will not count up (#10)
Yes because the library uses flags to start, stop and pause. If you reset midway then the flag will not be set to do the action you require without doing the process over. If you reset you must start again, if you pause you must resume.
Sent from my iPhone
On May 1, 2016, at 11:17 AM, Steve-GB notifications@github.com wrote:
HI, I've noticed another anomaly now. When T.StartTimer(); is first set and the time begins to count, if a T.ResetTimer(); is then performed the timer goes back to zero and starts again as expected. if then a T.PauseTimer() is then set, instead of pausing it returns to zero again and starts counting. if a second T.PauseTimer() is set then it ignores it and if a third is set the timer pauses. if then T.ResumeTimer() is set the timer doesnt resume. A reset will work though returning to zero as expected. then if another resume is set then it counts 1 and stops. and second resume and the timer starts to count again.
Sorry if this sounds a bit confusing, I'm using the same code as posted above.
If I reset the audrino and do not use the reset while the timer is running then all seems to be okay. It seems it doesnt like being reset whilst its running. it has to be paused then reset and then resumed.
— You are receiving this because you commented. Reply to this email directly or view it on GitHub
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHubhttps://github.com/AndrewMascolo/CountUpDownTimer/issues/10#issuecomment-216056977
It should yes, there is nothing there that uses static variables.
Sent from my iPhone
On May 2, 2016, at 12:32 PM, Steve-GB notifications@github.com wrote:
I’ve not tried yet. But will your counter support two instances?
I will ultimately want two stop watches on the project.
From: AndrewMascolo [mailto:notifications@github.com] Sent: 01 May 2016 18:21 To: AndrewMascolo/CountUpDownTimer CountUpDownTimer@noreply.github.com Cc: Steve-GB steveb@avtsuk.com; Author author@noreply.github.com Subject: Re: [AndrewMascolo/CountUpDownTimer] Timer Will not count up (#10)
Yes because the library uses flags to start, stop and pause. If you reset midway then the flag will not be set to do the action you require without doing the process over. If you reset you must start again, if you pause you must resume.
Sent from my iPhone
On May 1, 2016, at 11:17 AM, Steve-GB notifications@github.com wrote:
HI, I've noticed another anomaly now. When T.StartTimer(); is first set and the time begins to count, if a T.ResetTimer(); is then performed the timer goes back to zero and starts again as expected. if then a T.PauseTimer() is then set, instead of pausing it returns to zero again and starts counting. if a second T.PauseTimer() is set then it ignores it and if a third is set the timer pauses. if then T.ResumeTimer() is set the timer doesnt resume. A reset will work though returning to zero as expected. then if another resume is set then it counts 1 and stops. and second resume and the timer starts to count again.
Sorry if this sounds a bit confusing, I'm using the same code as posted above.
If I reset the audrino and do not use the reset while the timer is running then all seems to be okay. It seems it doesnt like being reset whilst its running. it has to be paused then reset and then resumed.
— You are receiving this because you commented. Reply to this email directly or view it on GitHub
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHubhttps://github.com/AndrewMascolo/CountUpDownTimer/issues/10#issuecomment-216056977 — You are receiving this because you commented. Reply to this email directly or view it on GitHub
Hello Andrew, I'm having some issues with my code, I wonder if you could take a look please. http://pastebin.com/8PF14JvL
This project drives an LED display with a RTC or a counting up stop watch. The display shows 00 00 01 and doesnt show anything more, I've addedd the serial debug in to watch it and that two just shows 0:0:1 and nothing more.
It seems the counter isnt running for some readon. I have even tried the examples and they stop after showing one second. do you have any ideas ? thanks,