SignalTower#
Signal Tower commands can only be used with the CTE Signal Tower.
Initializing the SignalTower Class#
A Signal Tower is created by using the following constructor:
arm.signal_tower
This constructor uses no parameters.
# Construct a Signal Tower "signaltower_1" with the
# arm.signal_tower class.
signaltower_1 = arm.signal_tower
This signaltower_1 object will be used in all subsequent examples throughout this API documentation when referring to SignalTower class methods.
Class Methods#
set_color()#
The set_color(color, state) method is used to set the Signal Tower’s color and state indefinitely, or until the method is used again.
Parameter |
Description |
|---|---|
|
A valid |
|
A valid |
Returns: None
# Set the Signal Tower to start blinking the blue LED.
signaltower_1.set_color(signal_tower.BLUE, signal_tower.BLINK)