Digi LR54 User Manual page 744

Hide thumbs Also See for LR54:
Table of Contents

Advertisement

Applications
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
The use(led) function
Available LEDs
LED
All available LEDs
Power
GNSS
WIFI1 (LR54W only)
WIFI2 LR54W only)
WWAN1 Signal
WWAN1 Service
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:
1. At the shell prompt, use the python command with no parameters to enter an interactive
Python session:
# python
Python 3.10.1 (default, May
[GCC 8.3.0] on linux
LR54 User Guide
for instructions on using these methods.
Attribute name
Led.ALL
Led.POWER
Led.GNSS
Led.WIFI1
Led.WIFI2
Led.WWAN1_SIGNAL_GREEN
Led.WWAN1_SIGNAL_YELLOW
Led.WWAN1_SERVICE_GREEN
Led.WWAN1_SERVICE_YELLOW
Attribute name
State.ON
State.OFF
State.FLASH_SLOW
State.FLASH_FAST
9 2021, 22:49:59)
Develop Python applications
Color
Blue
Green
Green
Green
Green
Yellow
Green
Yellow
744

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tx64

Table of Contents