kotobuki / funnel

Automatically exported from code.google.com/p/funnel
Other
2 stars 2 forks source link

add maxPWMValue to Pin object #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The is a feature request:

With the addition of ExtendedAnalogData in Firmata 2.2, it is possible to send 
PWM values greater than 8 bits (assuming that in the future Arduino, Wiring, 
etc may support PWM values > 255). In funnel, values between 0.0 and 1.0 are 
passed to analogWrite and they are then scaled up to the range of 0 - 255. It 
is not possible to send values greater than 255. My thought it to add a 
'maxPWMValue' property to the Pin class that is default to 255, then in 
analogWrite, use the value of maxPWMValue rather than the literal "255" to 
scale the value. In the future, perhaps the firmata configuration query could 
report the maxPWMValue of a pin.

Original issue reported on code.google.com by jeff.ho...@gmail.com on 14 Jan 2012 at 7:26

GoogleCodeExporter commented 8 years ago
This is low priority. Just notting it so I don't forget.

Original comment by jeff.ho...@gmail.com on 14 Jan 2012 at 7:32