ecto / duino

:bulb: Arduino framework for node.js
959 stars 214 forks source link

Improvements to Servo functionality #19

Closed rwaldron closed 12 years ago

rwaldron commented 12 years ago

To be honest, I'm hesitant to submit this pull request. I understand it's a lot of code, none of which was discussed in a ticket/issue. This patch set is the result of my actual use case needs for controlling a servo, which resulted in adopting a Event Emitter base prototype that:

I wish I could provide unit tests for all of these features, but as no testing suite exists and I already feel as though I my have overstepped, I chose to just create example files that illustrate the use cases.

All of these changes were developed on an Arduino UNO with protoshield and stock servo.