Example: Set The Lte Connection Indicator To Flashing Purple - Digi IX30 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
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 (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
Use Python to control the color of multi-colored LEDs
Color
Purple
Purple flashing
Cyan
Cyan flashing
for a definition of the IX30's LEDs, including RGB leds, and the
9 2021, 22:49:59)
State
ON
OFF
ON
FLASH
OFF
FLASH
OFF
ON
ON
OFF
FLASH
FLASH
664

Advertisement

Table of Contents
loading

Table of Contents