The Digidevice Led Submodule - Digi TX54 User Manual

Hide thumbs Also See for TX54:
Table of Contents

Advertisement

Applications
5. Use Ctrl-D to exit the Python session. You can also exit the session using exit() or quit().

The digidevice led submodule

Use the led submodule to redefine the purpose of any front-panel LED on the TX54 device. With this
submodule, you can:
Gain control of the LED with the led.acquire() function.
n
Define the state of the LED with the led.set() function.
n
Use the use() function to create a function that acquires, sets, and releases an LED.
n
Optionally release control of the LED with the led.release() function.
n
See
Use Python to set the state of LEDs
Available LEDs
LED
Power
GNSS
WIFI1
WIFI2 (Dual-Wi-Fi models only)
WWAN1 Signal
WWAN1 Service
WWAN2 Signal (Dual-cellular models only)
WWAN2 Service (Dual-cellular models only)
All available LEDs
Available LED states
State
Solid on
Off
Slow flash
Fast flash
Use Python to set the state of LEDs
The following example uses an interactive Python session to set the state of all LEDs to flashing:
TX54 User Guide
for instructions on using these methods.
Available colors
Blue
Green
Green
Green
Green
Yellow
Green
Yellow
Green
Yellow
Green
Yellow
Atttribute name
State.ON
State.OFF
State.FLASH_SLOW
State.FLASH_FAST
Digidevice module
Attribute name
Led.POWER
Led.GNSS
Led.WIFI1
Led.WIFI2
Led.WWAN1_SIGNAL_GREEN
Led.WWAN1_SIGNAL_YELLOW
Led.WWAN1_SERVICE_GREEN
Led.WWAN1_SERVICE_YELLOW
Led.WWAN2_SIGNAL_GREEN
Led.WWAN2_SIGNAL_YELLOW
Led.WWAN2_SERVICE_GREEN
Led.WWAN2_SERVICE_YELLOW
Led.ALL
712

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tx64

Table of Contents