Torre de señales#

Los comandos de la torre de señales solo se pueden utilizar con la torre de señales CTE.

Inicializando la clase SignalTower#

Una torre de señales se crea utilizando el siguiente constructor:

arm.signal_tower

Este constructor no utiliza parámetros.

# 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.

Métodos de clase#

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.

Parámetro

Descripción

color

A valid SignalTowerColorType.

state

A valid SignalTowerStateType.

Devoluciones: Ninguna

# Set the Signal Tower to start blinking the blue LED.
signaltower_1.set_color(signal_tower.BLUE, signal_tower.BLINK)