So I really like the PulsePosition library in TeensyDuino and have susesfuly used it a few times, may thanks Paul! But while the library is event driven rather than poll driven or blocking the interface/api with the main sketch is not.
I have fond that event driven things seem to be good and one of the guys I am working on a project with wants the hole thing to be almost completely event driven so i thought i would have a look under the hood of Pulse Position and I have a had a go at my own version.
I just took the version in my copy of TeensyDuino and had a bit of a hack at it.
https://github.com/fishrockz/PulseEvents
Not sure that it really follows any good practice or not but the little test/example seems to work as expected so i am going to have a go at using it in my main project soon but thought i would give it to you guys too.
Any feed back would be gratefully received. If it needs a bit more clean up before it is useful to others then let me know what would be good and i will have a stab at it.
Also dose the community have strong views on this sort of thing, are more event driven things a good idea or do they scare new people off? etc.
Will
I have fond that event driven things seem to be good and one of the guys I am working on a project with wants the hole thing to be almost completely event driven so i thought i would have a look under the hood of Pulse Position and I have a had a go at my own version.
I just took the version in my copy of TeensyDuino and had a bit of a hack at it.
https://github.com/fishrockz/PulseEvents
Not sure that it really follows any good practice or not but the little test/example seems to work as expected so i am going to have a go at using it in my main project soon but thought i would give it to you guys too.
Any feed back would be gratefully received. If it needs a bit more clean up before it is useful to others then let me know what would be good and i will have a stab at it.
Also dose the community have strong views on this sort of thing, are more event driven things a good idea or do they scare new people off? etc.
Will