Comments (2)
Hi Bill,
I'm glad you liked it. getAvailable method is pretty dumb actually... but,
you can fell free to change it! It would be really good to have it
improved. If it works well we can update the repository!
Can you try to fix/improve it?
Ivan
Em 27/06/2014 13:32, "SwarfEye" [email protected] escreveu:
Hi,
I've been using your library a lot! Thanks so much.
I have recently encountered an issue with the library.
I have a project that involves a bunch of different objects and libraries.
Several of the different objects need to make use of timers. I need to be
able to get a timer, name it, and hold on to it for a period of time, and I
need to have a number of different objects do so that they all have access
to their assigned timer.Currently, the getAvailable() function will keep returning the same timer
until that timer is started, so it is not possible to reserve a timer for
use later. Also, if you run out of timers, then getAvailable() doesn't
notify you of the error... it just returns timer0... which is a possible
source of big trouble if timer0 is already in use.My current solution is simply to hard-code timer numbers into each
instance... but it would be much nicer to be able to pickup a timer when
needed/as needed and then release them again without having to assign
specific timers to each object.Thanks,
Bill
—
Reply to this email directly or view it on GitHub
#28.
from duetimer.
Thanks again for making this library available.
I'll let you know if I implement a fix here. At this point I think I'll be
able to hack around the limitations, and so I likely will... but maybe it
won't work for some reason and then I'll have to dig in.
Thanks again.
Bill
On Fri, Jun 27, 2014 at 4:55 PM, Ivan Seidel [email protected]
wrote:
Hi Bill,
I'm glad you liked it. getAvailable method is pretty dumb actually... but,
you can fell free to change it! It would be really good to have it
improved. If it works well we can update the repository!Can you try to fix/improve it?
Ivan
Em 27/06/2014 13:32, "SwarfEye" [email protected] escreveu:Hi,
I've been using your library a lot! Thanks so much.
I have recently encountered an issue with the library.
I have a project that involves a bunch of different objects and
libraries.
Several of the different objects need to make use of timers. I need to
be
able to get a timer, name it, and hold on to it for a period of time,
and I
need to have a number of different objects do so that they all have
access
to their assigned timer.Currently, the getAvailable() function will keep returning the same
timer
until that timer is started, so it is not possible to reserve a timer
for
use later. Also, if you run out of timers, then getAvailable() doesn't
notify you of the error... it just returns timer0... which is a possible
source of big trouble if timer0 is already in use.My current solution is simply to hard-code timer numbers into each
instance... but it would be much nicer to be able to pickup a timer when
needed/as needed and then release them again without having to assign
specific timers to each object.Thanks,
Bill
—
Reply to this email directly or view it on GitHub
#28.—
Reply to this email directly or view it on GitHub
#28 (comment).
Bill Gray
Velkess
415 407 7356
from duetimer.
Related Issues (20)
- precise timing HOT 2
- Reading the current counter value
- PWM , hardware generating HOT 1
- Calling setFrequency() with timer active causes callback to stop running HOT 2
- compatibility to Arduino-FreqPeriod-Due-master
- Callbacks HOT 1
- Support for PLL functionality?
- DueTImer and serialUSB HOT 2
- Could you give us a sample code ?
- DueTimer for Nano
- 6 PWM 1Mhz HOT 1
- Change timer value on the fly HOT 7
- about getFrequency(); And getPeriod();
- about getperiod();
- TC_FindMckDivisor
- How can I create a class with its own timer HOT 1
- Multiple Timers Hanging HOT 3
- Setting a very low frequency
- DueTimer and interrupt priority
- move calc of _frequency[timer] to getFrequency()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duetimer.