Releasing The Leds To System Control; Use Python To Control The Color Of Multi-Colored Leds - Digi IX20W-PR User Manual

Table of Contents

Advertisement

Applications

Releasing the LEDs to system control

During a Python interactive session, or from within a Python script, you can release control of the LED
from Python to system control using the led.release() method.
If the Python script or session terminates prior to releasing control to the system, the LEDs will
continue to have the state that Python set to them, until the device is rebooted. See
to run automatically
by the Python script even after reboot.
If any system processes attempt to take control of the LED while Python is in control of it, the state
information from the system process is recorded but the LED state is not updated until Python
releases control of the LED. When the LED is returned to system control, the state of the LED will
reflect the correct, recorded state information.
Setting the state of multi-colored LEDs.

Use Python to control the color of multi-colored LEDs

One or more LEDs in the IX20 are RGB (red, green, and blue) LEDs, capable of producing a wide range
of colors. You can use the digidevice.led Python module to control the color as well as the state of
these LEDs.
For example, the LTE connection indicator can be set to various colors:
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
IX20 User Guide
for information about configuring the device so that the LED state is controlled
Releasing the LEDs to system control
Color
State
Red
ON
OFF
OFF
Red flashing
FLASH
OFF
OFF
Green
OFF
ON
OFF
Green flashing
OFF
FLASH
OFF
Blue
OFF
OFF
ON
Configure scripts
831

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ix20Ix20wIx20-pr

Table of Contents