Commands
busylight_core.vendors.kuando.implementation.commands
¶
Kuando Busylight command classes.
This module defines the Step and Footer classes that form the core command structure for Kuando Busylight devices. Each Step represents a single instruction in the device's execution sequence.
Classes¶
busylight_core.vendors.kuando.implementation.commands.Step
¶
Bases: Word
A single command step for Kuando Busylight devices.
The Step class represents one instruction in the device's command sequence. Each device supports up to 7 steps that can control LED colors, timing, ringtones, and other device behaviors.
Source code in src/busylight_core/vendors/kuando/implementation/commands.py
Attributes¶
busylight_core.vendors.kuando.implementation.commands.Step.color
property
writable
¶
Get the current RGB color as a tuple.
busylight_core.vendors.kuando.implementation.commands.Step.opcode
class-attribute
instance-attribute
¶
opcode = OpCodeField()
busylight_core.vendors.kuando.implementation.commands.Step.operand
class-attribute
instance-attribute
¶
operand = OperandField()
busylight_core.vendors.kuando.implementation.commands.Step.body
class-attribute
instance-attribute
¶
body = BodyField()
busylight_core.vendors.kuando.implementation.commands.Step.repeat
class-attribute
instance-attribute
¶
repeat = RepeatField()
busylight_core.vendors.kuando.implementation.commands.Step.red
class-attribute
instance-attribute
¶
red = RedField()
busylight_core.vendors.kuando.implementation.commands.Step.green
class-attribute
instance-attribute
¶
green = GreenField()
busylight_core.vendors.kuando.implementation.commands.Step.blue
class-attribute
instance-attribute
¶
blue = BlueField()
busylight_core.vendors.kuando.implementation.commands.Step.duty_cycle_on
class-attribute
instance-attribute
¶
duty_cycle_on = DutyCycleOnField()
busylight_core.vendors.kuando.implementation.commands.Step.duty_cycle_off
class-attribute
instance-attribute
¶
duty_cycle_off = DutyCycleOffField()
busylight_core.vendors.kuando.implementation.commands.Step.update
class-attribute
instance-attribute
¶
update = UpdateBit()
busylight_core.vendors.kuando.implementation.commands.Step.ringtone
class-attribute
instance-attribute
¶
ringtone = RingtoneField()
busylight_core.vendors.kuando.implementation.commands.Step.volume
class-attribute
instance-attribute
¶
volume = VolumeField()
busylight_core.vendors.kuando.implementation.commands.Step.initial_value
instance-attribute
¶
busylight_core.vendors.kuando.implementation.commands.Step.length
instance-attribute
¶
busylight_core.vendors.kuando.implementation.commands.Step.bits
instance-attribute
¶
busylight_core.vendors.kuando.implementation.commands.Step.value
property
¶
Return the integer value of the word.
busylight_core.vendors.kuando.implementation.commands.Step.range
property
¶
Return the range of bit offsets for this word.
busylight_core.vendors.kuando.implementation.commands.Step.hex
property
¶
Return a string hexadecimal representation of the word.
busylight_core.vendors.kuando.implementation.commands.Step.bin
property
¶
Return a string binary representation of the word.
Functions¶
busylight_core.vendors.kuando.implementation.commands.Step.keep_alive
¶
Configure the step as a KeepAlive with timeout in seconds.
busylight_core.vendors.kuando.implementation.commands.Step.boot
¶
busylight_core.vendors.kuando.implementation.commands.Step.reset
¶
busylight_core.vendors.kuando.implementation.commands.Step.jump
¶
jump(
color,
target=0,
repeat=0,
on_time=0,
off_time=0,
update=0,
ringtone=Off,
volume=0,
)
Configure the step as a Jump instruction.
Source code in src/busylight_core/vendors/kuando/implementation/commands.py
busylight_core.vendors.kuando.implementation.commands.Footer
¶
Bases: Step
Command footer with checksum and device-specific fields.
The Footer extends Step with additional fields specific to command validation and device configuration. It includes a checksum field that ensures command integrity.
Source code in src/busylight_core/vendors/kuando/implementation/commands.py
Attributes¶
busylight_core.vendors.kuando.implementation.commands.Footer.sensitivity
class-attribute
instance-attribute
¶
sensitivity = SensitivityField()
busylight_core.vendors.kuando.implementation.commands.Footer.timeout
class-attribute
instance-attribute
¶
timeout = TimeoutField()
busylight_core.vendors.kuando.implementation.commands.Footer.trigger
class-attribute
instance-attribute
¶
trigger = TriggerField()
busylight_core.vendors.kuando.implementation.commands.Footer.pad
class-attribute
instance-attribute
¶
pad = BitField(16, 24)
busylight_core.vendors.kuando.implementation.commands.Footer.checksum
class-attribute
instance-attribute
¶
checksum = ChecksumField()
busylight_core.vendors.kuando.implementation.commands.Footer.initial_value
instance-attribute
¶
busylight_core.vendors.kuando.implementation.commands.Footer.length
instance-attribute
¶
busylight_core.vendors.kuando.implementation.commands.Footer.bits
instance-attribute
¶
busylight_core.vendors.kuando.implementation.commands.Footer.value
property
¶
Return the integer value of the word.
busylight_core.vendors.kuando.implementation.commands.Footer.range
property
¶
Return the range of bit offsets for this word.
busylight_core.vendors.kuando.implementation.commands.Footer.hex
property
¶
Return a string hexadecimal representation of the word.
busylight_core.vendors.kuando.implementation.commands.Footer.bin
property
¶
Return a string binary representation of the word.
busylight_core.vendors.kuando.implementation.commands.Footer.color
property
writable
¶
Get the current RGB color as a tuple.
busylight_core.vendors.kuando.implementation.commands.Footer.opcode
class-attribute
instance-attribute
¶
opcode = OpCodeField()
busylight_core.vendors.kuando.implementation.commands.Footer.operand
class-attribute
instance-attribute
¶
operand = OperandField()
busylight_core.vendors.kuando.implementation.commands.Footer.body
class-attribute
instance-attribute
¶
body = BodyField()
busylight_core.vendors.kuando.implementation.commands.Footer.repeat
class-attribute
instance-attribute
¶
repeat = RepeatField()
busylight_core.vendors.kuando.implementation.commands.Footer.red
class-attribute
instance-attribute
¶
red = RedField()
busylight_core.vendors.kuando.implementation.commands.Footer.green
class-attribute
instance-attribute
¶
green = GreenField()
busylight_core.vendors.kuando.implementation.commands.Footer.blue
class-attribute
instance-attribute
¶
blue = BlueField()
busylight_core.vendors.kuando.implementation.commands.Footer.duty_cycle_on
class-attribute
instance-attribute
¶
duty_cycle_on = DutyCycleOnField()
busylight_core.vendors.kuando.implementation.commands.Footer.duty_cycle_off
class-attribute
instance-attribute
¶
duty_cycle_off = DutyCycleOffField()
busylight_core.vendors.kuando.implementation.commands.Footer.update
class-attribute
instance-attribute
¶
update = UpdateBit()
busylight_core.vendors.kuando.implementation.commands.Footer.ringtone
class-attribute
instance-attribute
¶
ringtone = RingtoneField()
busylight_core.vendors.kuando.implementation.commands.Footer.volume
class-attribute
instance-attribute
¶
volume = VolumeField()
Functions¶
busylight_core.vendors.kuando.implementation.commands.Footer.clear
¶
busylight_core.vendors.kuando.implementation.commands.Footer.keep_alive
¶
Configure the step as a KeepAlive with timeout in seconds.
busylight_core.vendors.kuando.implementation.commands.Footer.boot
¶
busylight_core.vendors.kuando.implementation.commands.Footer.reset
¶
busylight_core.vendors.kuando.implementation.commands.Footer.jump
¶
jump(
color,
target=0,
repeat=0,
on_time=0,
off_time=0,
update=0,
ringtone=Off,
volume=0,
)
Configure the step as a Jump instruction.