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

Hide thumbs Also See for IX10:
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
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)
5. Use led.set() to set the state of the Led.COM and Led.ONLINE to FLASH:
>>> led.set(Led.COM, State.FLASH)
>>> led.set(Led.ONLINE, State.FLASH)
6. Set the state of the Led.ETH to OFF:
>>> led.set(Led.ETH, State.OFF)
IX10 User Guide
Use Python to control the color of multi-colored LEDs
Color
Purple flashing
Cyan
Cyan flashing
for a definition of the IX10's LEDs, including RGB leds, and the
State
FLASH
OFF
FLASH
OFF
ON
ON
OFF
FLASH
FLASH
644

Advertisement

Table of Contents
loading

Table of Contents