Skip to content

Fields

busylight_core.vendors.thingm.implementation.fields

ThingM Blink(1) bit field definitions.

This module defines BitField classes used to construct device commands. Each field represents a specific portion of the 64-bit command structure that controls various aspects of ThingM Blink(1) device behavior.

Classes

busylight_core.vendors.thingm.implementation.fields.ReportField

ReportField()

Bases: BitField

8-bit report field for HID communication.

Source code in src/busylight_core/vendors/thingm/implementation/fields.py
def __init__(self) -> None:
    super().__init__(56, 8)
Attributes
busylight_core.vendors.thingm.implementation.fields.ReportField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.thingm.implementation.fields.ReportField.offset instance-attribute
offset = offset
busylight_core.vendors.thingm.implementation.fields.ReportField.width instance-attribute
width = width

busylight_core.vendors.thingm.implementation.fields.ActionField

ActionField()

Bases: BitField

8-bit action field specifying the command to execute.

Source code in src/busylight_core/vendors/thingm/implementation/fields.py
def __init__(self) -> None:
    super().__init__(48, 8)
Attributes
busylight_core.vendors.thingm.implementation.fields.ActionField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.thingm.implementation.fields.ActionField.offset instance-attribute
offset = offset
busylight_core.vendors.thingm.implementation.fields.ActionField.width instance-attribute
width = width

busylight_core.vendors.thingm.implementation.fields.RedField

RedField()

Bases: BitField

8-bit red color component.

Source code in src/busylight_core/vendors/thingm/implementation/fields.py
def __init__(self) -> None:
    super().__init__(40, 8)
Attributes
busylight_core.vendors.thingm.implementation.fields.RedField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.thingm.implementation.fields.RedField.offset instance-attribute
offset = offset
busylight_core.vendors.thingm.implementation.fields.RedField.width instance-attribute
width = width

busylight_core.vendors.thingm.implementation.fields.GreenField

GreenField()

Bases: BitField

8-bit green color component.

Source code in src/busylight_core/vendors/thingm/implementation/fields.py
def __init__(self) -> None:
    super().__init__(32, 8)
Attributes
busylight_core.vendors.thingm.implementation.fields.GreenField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.thingm.implementation.fields.GreenField.offset instance-attribute
offset = offset
busylight_core.vendors.thingm.implementation.fields.GreenField.width instance-attribute
width = width

busylight_core.vendors.thingm.implementation.fields.BlueField

BlueField()

Bases: BitField

8-bit blue color component.

Source code in src/busylight_core/vendors/thingm/implementation/fields.py
def __init__(self) -> None:
    super().__init__(24, 8)
Attributes
busylight_core.vendors.thingm.implementation.fields.BlueField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.thingm.implementation.fields.BlueField.offset instance-attribute
offset = offset
busylight_core.vendors.thingm.implementation.fields.BlueField.width instance-attribute
width = width

busylight_core.vendors.thingm.implementation.fields.PlayField

PlayField()

Bases: BitField

8-bit play field for pattern playback control.

Source code in src/busylight_core/vendors/thingm/implementation/fields.py
def __init__(self) -> None:
    super().__init__(40, 8)
Attributes
busylight_core.vendors.thingm.implementation.fields.PlayField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.thingm.implementation.fields.PlayField.offset instance-attribute
offset = offset
busylight_core.vendors.thingm.implementation.fields.PlayField.width instance-attribute
width = width

busylight_core.vendors.thingm.implementation.fields.StartField

StartField()

Bases: BitField

8-bit start field for pattern range specification.

Source code in src/busylight_core/vendors/thingm/implementation/fields.py
def __init__(self) -> None:
    super().__init__(32, 8)
Attributes
busylight_core.vendors.thingm.implementation.fields.StartField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.thingm.implementation.fields.StartField.offset instance-attribute
offset = offset
busylight_core.vendors.thingm.implementation.fields.StartField.width instance-attribute
width = width

busylight_core.vendors.thingm.implementation.fields.StopField

StopField()

Bases: BitField

8-bit stop field for pattern range specification.

Source code in src/busylight_core/vendors/thingm/implementation/fields.py
def __init__(self) -> None:
    super().__init__(24, 8)
Attributes
busylight_core.vendors.thingm.implementation.fields.StopField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.thingm.implementation.fields.StopField.offset instance-attribute
offset = offset
busylight_core.vendors.thingm.implementation.fields.StopField.width instance-attribute
width = width

busylight_core.vendors.thingm.implementation.fields.CountField

CountField()

Bases: BitField

8-bit count field for repetition control.

Source code in src/busylight_core/vendors/thingm/implementation/fields.py
def __init__(self) -> None:
    super().__init__(16, 8)
Attributes
busylight_core.vendors.thingm.implementation.fields.CountField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.thingm.implementation.fields.CountField.offset instance-attribute
offset = offset
busylight_core.vendors.thingm.implementation.fields.CountField.width instance-attribute
width = width

busylight_core.vendors.thingm.implementation.fields.FadeField

FadeField()

Bases: BitField

16-bit fade field for transition timing in milliseconds.

Source code in src/busylight_core/vendors/thingm/implementation/fields.py
def __init__(self) -> None:
    super().__init__(8, 16)
Attributes
busylight_core.vendors.thingm.implementation.fields.FadeField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.thingm.implementation.fields.FadeField.offset instance-attribute
offset = offset
busylight_core.vendors.thingm.implementation.fields.FadeField.width instance-attribute
width = width

busylight_core.vendors.thingm.implementation.fields.LedsField

LedsField()

Bases: BitField

8-bit LED selection field for multi-LED devices.

Source code in src/busylight_core/vendors/thingm/implementation/fields.py
def __init__(self) -> None:
    super().__init__(0, 8)
Attributes
busylight_core.vendors.thingm.implementation.fields.LedsField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.thingm.implementation.fields.LedsField.offset instance-attribute
offset = offset
busylight_core.vendors.thingm.implementation.fields.LedsField.width instance-attribute
width = width

busylight_core.vendors.thingm.implementation.fields.LinesField

LinesField()

Bases: BitField

8-bit line field for pattern line indexing.

Source code in src/busylight_core/vendors/thingm/implementation/fields.py
def __init__(self) -> None:
    super().__init__(0, 8)
Attributes
busylight_core.vendors.thingm.implementation.fields.LinesField.field instance-attribute
field = slice(offset, offset + width)
busylight_core.vendors.thingm.implementation.fields.LinesField.offset instance-attribute
offset = offset
busylight_core.vendors.thingm.implementation.fields.LinesField.width instance-attribute
width = width