-
Notifications
You must be signed in to change notification settings - Fork 76
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
Add "servo" wrapper class to SoftPWMServo #575
Comments
…Servo * This is needed for the new Firmata support * Also fixed FubarinoSD analog mapping macro so that the new Firmata would work properly * Also fixed some subtle bugs in SoftPWMServo that were not exposed until Firmata really exercised it a lot.
You could inherit the Servo class as a parent then and override the relevant functions. That way the SoftPWMServo class can be passed to any functions that expect a Servo object. Means you have to include both Servo and SoftPWMServo (if you're not on UECIDE of course)... |
Fix for issue #575 : Adding "servo" wrapper class to SoftPMWServo
True. I've got everything done, for now, in a simple way. Next step is to On Fri, Jun 26, 2015 at 6:47 AM, Matt Jenkins [email protected]
|
Personally I'd like to see more interface classes defined in the core - things like the Servo interface, etc, that the libraries then use instead of defining their own interfaces. Makes for a much cleaner system. |
I completely agree. The trick, of course, is doing it without affecting On Fri, Jun 26, 2015 at 6:49 AM, Matt Jenkins [email protected]
|
Yeah, Arduino is a real millstone round our necks... |
Confirmed closed? |
…Servo * This is needed for the new Firmata support * Also fixed FubarinoSD analog mapping macro so that the new Firmata would work properly * Also fixed some subtle bugs in SoftPWMServo that were not exposed until Firmata really exercised it a lot.
This should be confirmed by somebody other than me before being closed. At least test it out that it works for them. |
The idea here is that it will have exactly the same interface as the standard Arduino servo class, so you can just drop in SoftPWMServo.h instead of Servo.h and all existing sketches will just work.
The text was updated successfully, but these errors were encountered: