LEDStripBase

class LEDStripBase[source]

Bases: object

Base class for LED strip

__init__()

Methods

__init__()

clear_strip()

Clear all LEDs

set_led_color(index, red, green, blue)

Set the color of a specific LED

update_strip()

Update the LED strip to show changes

Attributes

error: str = 'LED strip not available.'
num_leds: int = 10
set_led_color(index: int, red: int, green: int, blue: int) None[source]

Set the color of a specific LED

update_strip() None[source]

Update the LED strip to show changes

clear_strip() None[source]

Clear all LEDs