Skip to content

Luxafor Implementation

Flag, Mute, Orb, and Bluetooth devices

This module contains the low-level implementation details for Luxafor devices, including enumerations, bit fields, and state management classes.

Available Components

Luxafor Flag implementation details.

Classes

busylight_core.vendors.luxafor.implementation.LEDS

Bases: IntEnum

LED selection enumeration for Luxafor Flag devices.

Defines which LEDs to target with commands. Luxafor devices have 6 individual LEDs that can be controlled independently or as groups.

Attributes
busylight_core.vendors.luxafor.implementation.LEDS.All class-attribute instance-attribute
All = 255
busylight_core.vendors.luxafor.implementation.LEDS.Back class-attribute instance-attribute
Back = 65
busylight_core.vendors.luxafor.implementation.LEDS.Front class-attribute instance-attribute
Front = 66
busylight_core.vendors.luxafor.implementation.LEDS.LED1 class-attribute instance-attribute
LED1 = 1
busylight_core.vendors.luxafor.implementation.LEDS.LED2 class-attribute instance-attribute
LED2 = 2
busylight_core.vendors.luxafor.implementation.LEDS.LED3 class-attribute instance-attribute
LED3 = 3
busylight_core.vendors.luxafor.implementation.LEDS.LED4 class-attribute instance-attribute
LED4 = 4
busylight_core.vendors.luxafor.implementation.LEDS.LED5 class-attribute instance-attribute
LED5 = 5
busylight_core.vendors.luxafor.implementation.LEDS.LED6 class-attribute instance-attribute
LED6 = 6

busylight_core.vendors.luxafor.implementation.Command

Bases: IntEnum

Command enumeration for Luxafor Flag device operations.

Defines the available commands that can be sent to Luxafor devices to control colors, effects, and patterns.

Attributes
busylight_core.vendors.luxafor.implementation.Command.Color class-attribute instance-attribute
Color = 1
busylight_core.vendors.luxafor.implementation.Command.Fade class-attribute instance-attribute
Fade = 2
busylight_core.vendors.luxafor.implementation.Command.Strobe class-attribute instance-attribute
Strobe = 3
busylight_core.vendors.luxafor.implementation.Command.Wave class-attribute instance-attribute
Wave = 4
busylight_core.vendors.luxafor.implementation.Command.Pattern class-attribute instance-attribute
Pattern = 6

busylight_core.vendors.luxafor.implementation.Pattern

Bases: IntEnum

Pattern enumeration for built-in Luxafor effects.

Defines the available pre-programmed patterns that can be displayed on Luxafor devices without custom programming.

Attributes
busylight_core.vendors.luxafor.implementation.Pattern.Off class-attribute instance-attribute
Off = 0
busylight_core.vendors.luxafor.implementation.Pattern.TrafficLight class-attribute instance-attribute
TrafficLight = 1
busylight_core.vendors.luxafor.implementation.Pattern.Random1 class-attribute instance-attribute
Random1 = 2
busylight_core.vendors.luxafor.implementation.Pattern.Random2 class-attribute instance-attribute
Random2 = 3
busylight_core.vendors.luxafor.implementation.Pattern.Random3 class-attribute instance-attribute
Random3 = 4
busylight_core.vendors.luxafor.implementation.Pattern.Police class-attribute instance-attribute
Police = 5
busylight_core.vendors.luxafor.implementation.Pattern.Random4 class-attribute instance-attribute
Random4 = 6
busylight_core.vendors.luxafor.implementation.Pattern.Random5 class-attribute instance-attribute
Random5 = 7
busylight_core.vendors.luxafor.implementation.Pattern.Rainbow class-attribute instance-attribute
Rainbow = 8

busylight_core.vendors.luxafor.implementation.Wave

Bases: IntEnum

Wave effect enumeration for Luxafor devices.

Defines the available wave patterns that create flowing color effects across the LED array.

Attributes
busylight_core.vendors.luxafor.implementation.Wave.Off class-attribute instance-attribute
Off = 0
busylight_core.vendors.luxafor.implementation.Wave.Short class-attribute instance-attribute
Short = 1
busylight_core.vendors.luxafor.implementation.Wave.Long class-attribute instance-attribute
Long = 2
busylight_core.vendors.luxafor.implementation.Wave.ShortOverLapping class-attribute instance-attribute
ShortOverLapping = 3
busylight_core.vendors.luxafor.implementation.Wave.LongOverlapping class-attribute instance-attribute
LongOverlapping = 4
busylight_core.vendors.luxafor.implementation.Wave.WAVE5 class-attribute instance-attribute
WAVE5 = 5

busylight_core.vendors.luxafor.implementation.State

State()

Complete device state for Luxafor Flag commands.

The State class manages command construction for Luxafor devices. It supports various commands including solid colors, fade effects, strobe patterns, wave effects, and built-in patterns.

Initialize state with default values.

Attributes
busylight_core.vendors.luxafor.implementation.State.command instance-attribute
command = Color
busylight_core.vendors.luxafor.implementation.State.leds instance-attribute
leds = All
busylight_core.vendors.luxafor.implementation.State.fade instance-attribute
fade = 0
busylight_core.vendors.luxafor.implementation.State.repeat instance-attribute
repeat = 0
busylight_core.vendors.luxafor.implementation.State.pattern instance-attribute
pattern = Off
busylight_core.vendors.luxafor.implementation.State.wave instance-attribute
wave = Off
busylight_core.vendors.luxafor.implementation.State.color instance-attribute
color = (0, 0, 0)