firmata.js icon indicating copy to clipboard operation
firmata.js copied to clipboard

change the way analog and digital pin reporting values are changed

Open soundanalogous opened this issue 10 years ago • 1 comments

To better support the skipCapabilities functionality, the way analog and digital pin reporting should be changed to eliminate the dependency on the analog pin map. There may be other changes as well that can ensure the user can read and write analog pins when skipCapabilities is set to true, without the need to pass in an analog pin map.

soundanalogous avatar Jun 13 '15 02:06 soundanalogous

Johnny-Five uses the analogPins array to figure out what pin number value to use when a user program wants to use an analog pin as a digital pin five.Led("A0") or five.Servo("A0"). Since that actually needs to be 14 (w/ an Uno), "A0" -> index 0 of analogPins -> 14.

rwaldron avatar Jun 13 '15 16:06 rwaldron