Digi IX40 User Manual page 680

Table of Contents

Advertisement

Applications
Available LEDs
LED
All available LEDs
Online indicator
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 (main, Mar 30 2023, 23:47:13) [GCC 11.2.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
IX40 User Guide
Attribute name
Led.ALL
Led.LAN3_RX
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
Develop Python applications
Color
Blue
Red
Green
Blue
Green
680

Advertisement

Table of Contents
loading

Table of Contents