Signal Tower#

Introduction#

The Signal Tower is an indicator device that provides visual status feedback using colored lights and includes a built-in bumper switch for detecting physical interaction.

Below is a list of all available methods:

Setters – Configure the Signal Tower light colors and patterns.

  • set_color – Sets the pattern for a single Signal Tower color band.

  • set_colors – Sets the state of each Signal Tower light band.

Constructors – Manually initialize and configure the Signal Tower.

Setters#

set_color#

set_color sets the light pattern of one or more color lights on the Signal Tower.

Usage:
signal_tower.set_color(value, state)

Parámetro

Descripción

value

Optional. The color light to control:

  • SignalTower.RED
  • SignalTower.GREEN
  • SignalTower.BLUE
  • SignalTower.YELLOW
  • SignalTower.WHITE
  • SignalTower.ALL — Applies the action to all colors.

state

Optional. The light pattern to apply:

  • SignalTower.ON
  • SignalTower.OFF
  • SignalTower.BLINK

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

set_colors#

set_colors sets the state of each Signal Tower light band.

Usage:
signal_tower.set_colors(r, y, g, b, w)

Parámetro

Descripción

r

The state for the red LED:

  • SignalTower.ON
  • SignalTower.OFF
  • SignalTower.BLINK

y

The state for the yellow LED:

  • SignalTower.ON
  • SignalTower.OFF
  • SignalTower.BLINK

g

The state for the green LED:

  • SignalTower.ON
  • SignalTower.OFF
  • SignalTower.BLINK

b

The state for the blue LED:

  • SignalTower.ON
  • SignalTower.OFF
  • SignalTower.BLINK

w

The state for the white LED:

  • SignalTower.ON
  • SignalTower.OFF
  • SignalTower.BLINK

# Turn on all LEDs
signal_tower.set_colors(SignalTower.ON, SignalTower.ON, SignalTower.ON, SignalTower.ON, SignalTower.ON)

# Turn on just the red LED
signal_tower.set_colors(SignalTower.ON, SignalTower.OFF, SignalTower.OFF, SignalTower.OFF, SignalTower.OFF)

Constructors#

SignalTower#

The Signal Tower is accessed through the arm.signaltower attribute. There is no need to manually construct a SignalTower instance.

# Access the Signal Tower from the arm object
signal_tower = arm.signaltower