simplify pin capability mapping

The mapping method used was both inaccurate and unnecessary, and crashed when a device with a different number of pins was connected. refs https://github.com/rwldrn/johnny-five/issues/129