Closed ryoshu closed 9 years ago
Interesting. Let's find out what changed!
I just updated the mraa bindings used by Galileo-IO to the latest release and tested all 6 analog inputs. The only issue I found was that the latest version of the bindings are producing a 10bit ADC value instead of 12 (which matches Arduino)
@sethismyfriend try v0.3.5
Closing. Works after last update.
:clap:
This bug makes complete sense now.
Using firmware 1.0.2 with the IoT DevKit latest.
root@quark016d09:~/projects/coral-test# node analogRead.js READY
/home/root/projects/coral-test/node_modules/galileo-io/lib/galileo.js:84 processRead(board, report, board.pins[report.index].read()); ^ TypeError: Object # has no method 'read'
at /home/root/projects/coral-test/node_modules/galileo-io/lib/galileo.js:84:61
at Array.forEach (native)
at Object.read as _onImmediate
at processImmediate as _immediateCallback