Tutorial / Using with Flash

Main Methods

On board LED

turnOnLED():Void
Turn on the LED on the I/O module
turnOffLED():Void
Turn off the LED on the I/O module

Digital inputs

peekDigitalInput():Void
Peek status of digital inputs only once (will be stored in digitalInput[])
beginDigitalInput():Void
Keep peeking status of digital inputs (will be stored in digitalInput[])
endDigitalInput():Void
Stop peeking started by calling beginDigitalInput() method

Digital outputs

digitalOutput(chs:Number):Void
Output to digital outputs (from 0x00 to 0xFF for a maximum of 16 ports)
digitalOutput(values:Array):Void
Output to digital outputs (specify multiple ports simultaneously)
setHigh(ch:Number):Void
Set status of the specified digital output port to high
setHigh(chs:Array):Void
Set status of the specified digital output ports to high (specify multiple ports simultaneously)
setLow(ch:Number):Void
Set status of the specified digital output port to low
setLow(chs:Array):Void
Set status of the specified digital output ports to low (specify multiple ports simultaneously)

Analog inputs

peekAnalogInput():Void
Peek status of analog inputs only once (will be stored in analogInput[])
beginAnalogInput():Void
Keep peeking status of analog inputs (will be stored in analoglInput[])
endAnalogInput():Void
Stop peeking started by calling beginAnalogInput() method

Analog outputs

analogOutput(ch:Number, value:Number):Void
Output the value to the specified analog output port
analogOutput(values:Array):Void
Output the values to analog output ports (specify multiple ports simultaneously)
prev 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 next
Print