hybridgroup / cylon-firmata

Cylon adaptor for the Firmata protocol
http://cylonjs.com
Other
45 stars 10 forks source link

Add unified method for triggering callbacks and emitting events. #40

Closed stewart closed 9 years ago

stewart commented 9 years ago

Should this pattern be extracted into the Adaptor parent class in Cylon core?

Additionally, for most Firmata methods that interface with boards, event/callbacks are now triggered with the pin number as the last value, for use in drivers.

deadprogram commented 9 years ago

Seems like it is a useful pattern to add to parent.