From 1c43deddcd9969a634ea1c82bf545b8d5f16bc21 Mon Sep 17 00:00:00 2001 From: Seb-TheDropBears Date: Sun, 21 Jan 2024 08:05:18 +1100 Subject: [PATCH] oops --- components/led.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/led.py b/components/led.py index 5a14bdec..a529eabf 100644 --- a/components/led.py +++ b/components/led.py @@ -40,7 +40,9 @@ class PatternState(IntEnum): class LightStrip: # QUESTION? Should lightstrip take channel as arg in init? # or should this be delegated to a parent class of lightstrip and its init function - def __init__(self, strip_length: int, pwm_channel: PwmChannels) -> None: + def __init__( + self, strip_length: int, pwm_channel: PwmChannels = PwmChannels.led_strip + ) -> None: self.leds = wpilib.AddressableLED(pwm_channel) self.leds.setLength(strip_length) self.strip_length = strip_length