ecto/duino — Issue #7: Bug in analogRead
Author: semu
Created: 2012-02-27 22:03:07+00:00
State: open

Hi, there is a little bug in your `board.analogRead`, the code should be:

Board.prototype.analogRead = function (pin) {
pin = this.normalizePin(pin);
this.log('info', 'analogRead from pin ' + pin);
this.write('04' + pin + this.normalizeVal(0));
}

I'm sorry I haven't created a pull request, but my repository is too messed up right now :D