Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
SebZanardo committed Jan 20, 2024
1 parent beade54 commit 1c43ded
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/led.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c43ded

Please sign in to comment.