Player APIs (BrightScript & Ja...
...
Object Reference
Input/Output Objects
roGpioControlPort
6min
new scripts should use rocontrolport instead of rogpiocontrolport this object is used to control and wait for events on the brightsign generic gpio control port typically, leds or buttons are connected to the gpio port turning on a gpio output changes the voltage on the gpio port to 3 3v turning off a gpio output changes the voltage on the gpio port to 0v the gpio ports are bidirectional and must be programmed as either inputs or outputs the ids range from 0–7 the setwholestate() method will overwrite any prior output settings the setoutputstate() takes an output id (1, 2, or 6, for example) the setwholestate() method takes a mask (for example, setwholestate(setwholestate(2^1 + 2^2) will set ids 1 and 2) the javascript equivalent is controlport docid\ n8yocsdagogqcp1oyuolw ifmessageport setport(obj as object) as void ifgpiocontrolport isinputactive(input id as integer) as boolean getwholestate() as integer setoutputstate(output id as integer, onstate as boolean) as void setwholestate(on state as integer) as void enableinput(input id as integer) as boolean enableoutput(output id as integer) as boolean