Open GoogleCodeExporter opened 8 years ago
regarding the Potentiometer.as class, since analog pins already return a value
between 0 and 1.0 (assuming that the user has set the voltage reference on the
arduino if necessary), it may be better to allow the user to set their desired
output range. So in this case the function of setRange(minimum:Number,
maximum:Number) may be better expressed as allowing the user to enter their
desired minimum and maximum output. So the following (line 39) would change
from:
_pin.filters = [new Scaler(minimum, maximum, 0, 1, Scaler.LINEAR)];
to:
_pin.filters = [new Scaler(0, 1, minimum, maximum, Scaler.LINEAR)];
because the analog pin already returns a value from 0 to 1.0.
Original comment by jeff.ho...@gmail.com
on 30 Jan 2011 at 8:26
Original issue reported on code.google.com by
jeff.ho...@gmail.com
on 30 Jan 2011 at 8:20