A Servo control library that works on any output pin, not just the PWM pins
Fork of UniServ by
Revision 1:466aa582d2d3, committed 2017-06-05
- Comitter:
- obrie829
- Date:
- Mon Jun 05 07:56:03 2017 +0000
- Parent:
- 0:dde1a0011645
- Commit message:
- balh
Changed in this revision
UniServ.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r dde1a0011645 -r 466aa582d2d3 UniServ.cpp --- a/UniServ.cpp Wed Oct 13 23:53:29 2010 +0000 +++ b/UniServ.cpp Mon Jun 05 07:56:03 2017 +0000 @@ -29,12 +29,12 @@ ServMin=400; ServMax=2600; - Pulse.attach_us(this,&UniServ::SigStart,Period); + Pulse.attach_us( callback(this,&UniServ::SigStart), Period); } void UniServ::SigStart(){ ServPin=1; - PulseEnd.attach_us(this,&UniServ::SigStop,Position); + PulseEnd.attach_us( callback( this, &UniServ::SigStop), Position); } void UniServ::SigStop(){