Example: Set The Lte Connection Indicator To Flashing Purple - Digi IX40 User Manual

Table of Contents

Advertisement

Applications
LED attribute name
Led.COM
Led.ETH
Led.ONLINE
Led.COM
Led.ETH
Led.ONLINE
Led.COM
Led.ETH
Led.ONLINE
Led.COM
Led.ETH
Led.ONLINE
Led.COM
Led.ETH
Led.ONLINE
See
The digidevice led submodule
names of the attributes for each LED that will be used by the digidevice.led module.

Example: Set the LTE connection indicator to flashing purple

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
4. Use led.acquire() to gain control of the all LEDs:
>>> led.acquire(Led.ALL)
IX40 User Guide
Use Python to control the color of multi-colored LEDs
Color
Yellow flashing
Purple
Purple flashing
Cyan
Cyan flashing
for a definition of the IX40's LEDs, including RGB leds, and the
State
FLASH
FLASH
OFF
ON
OFF
ON
FLASH
OFF
FLASH
OFF
ON
ON
OFF
FLASH
FLASH
683

Advertisement

Table of Contents
loading

Table of Contents