Digi IX30 User Manual page 661

Table of Contents

Advertisement

Applications
LED
LTE connection indicator
Signal strength indicators
Available LED states
State
Solid on
Off
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
Type "help", "copyright", "credits" or "license" for more information.
>>>
2. Import the led submodule:
>>> from digidevice import led
3. Import the Led and State objects from the led submodule:
>>> from digidevice.led import Led, State
4. Use led.acquire() to gain control of the all LEDs:
>>> led.acquire(Led.ALL)
IX30 User Guide
Attribute name
Led.COM
Led.ETH
Led.ONLINE
1
Led.RSS1
2
Led.RSS2
3
Led.RSS3
4
Led.RSS4
5
Led.RSS5
Attribute name
State.ON
State.OFF
State.FLASH
9 2021, 22:49:59)
Develop Python applications
Color
Red
Green
Blue
Green
661

Advertisement

Table of Contents
loading

Table of Contents