BrightSign Object Reference Manual (FW 5.1) User Manual
Page 277

269
gpioPort = CreateObject("roControlPort", "BrightSign")
gpioPort.EnableOutput(2)
gpioPort.SetOutputState(2, true)
gpioPort.EnableOutput(3)
gpioPort.SetOutputState(3, true)
' set up pulse to have two time slices of 250ms each.
gpioPort.SetPulseParams({ milliseconds: 500, slices: 2 })
' pin 2 will have slice 1 on and slice 2 off.
gpioPort.SetPulse(2, &h01)
' pin 3 will have the reverse of pin 2.
gpioPort.SetPulse(3, &h02)
' wait for a bit.
sleep(10000)
' stop pulsing on pin 2.
gpioPort.RemovePulse(2)
This manual is related to the following products: