kuukar-rpi/kuukar_leds.py

10 lines
374 B
Python
Raw Normal View History

from telemetrix_rpi_pico import telemetrix_rpi_pico
from kuukar_config import LEDS_DATA_PIN, LEDS_NUM
2022-10-22 12:39:10 +00:00
class leds:
def __init__(self, aux_board: telemetrix_rpi_pico.TelemetrixRpiPico) -> None:
self.aux_board = aux_board
self.aux_board.set_pin_mode_neopixel(LEDS_DATA_PIN,LEDS_NUM)
2022-10-25 14:53:05 +00:00
def flash(self, r: int,g: int,b: int,duration_ms: int):
pass