Closed ohpauleez closed 7 years ago
According to the readme there is only one pin that supports Analog input: LRADC
Gah, thanks @rwaldron! Sorry about the noise. Works like a charm.
If there's anything I can ever do to help out this project or J5, please reach out!
No problem ❤️
First and foremost, thank you for all the effort you've put into this project.
When hooking up an FSR to the chip, I reached for J5's generic Sensor type (same general setup as found in the docs) - plugged into XIO-P0 and the setup like
let fsr = new five.Sensor({pin: "XIO-P0", freq: 25});
.This results in error, "TypeError: this._chips[pinData.chip].analogRead is not a function" coming from here, triggered by J5's sensor support --
johnny-five/lib/sensor.js:104
.Any thoughts on why this might be happening? Anything I can do to help out? Need any additional information?
I'm using Node 8, latest versions of chio-io and johnny-five, kernel 4.4 GUI, and I have the first generation CHIP (with the 4Gb Flash).