Class for communicating with an analogue input device.
new AdcInputDevice()function AdcInputDevice(master:Master, deviceId:Number)This constructor creates a new object for communicating with an analogue input device.
master | contains a pointer to the master object, see Master. |
deviceId | is the unique device identifier which you can find on the board or using the Master.requestDeviceTable method of the Master. |
function onInputChanged(device:Device, input:Number, value:Number)Whenever the value on an analogue input is changed this event will be raised.
device | contains a pointer back to this object, it is useful
in case of single method overriding. See Device.getDeviceId for more info. |
input | tells which input is changed, it lais between 1 and 6. |
value | holds the new measured value, it limits depending on the set resolution, see requestSetResolution for more info. |
function requestSetResolution(resolution:Number)Set the bitwise resolution of the measured values of the analog input.
resolution | bitwise resolution from 1 to 10. |