Class org.bluemelon.bluesense.DacOutputDevice

Description

Class for communicating with a dac (analog) output device.

Method Index

new DacOutputDevice()
requestSetOutput()

Inherited from Device

Constructor Detail

DacOutputDevice

function DacOutputDevice(master:Master, deviceId:Number)

This constructor creates a new object for communicating with a dac output device.

Parameters

mastercontains a pointer to the master object, see Master.
deviceIdis the unique device identifier which you can find on the board or using the Master.requestDeviceTable method of the Master.

Method Detail

requestSetOutput

function requestSetOutput(port:Number, value:Number)

Change the analog value of an output

Parameters

portspecifies the port of which the pulse width has to be changed, valid are 1 through 8.
valuespecifies the new value, it should be between 0 and 255.