mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[copybara] Sync with robotpy (#8964)
GitOrigin-RevId: 9dff8f977401e78be0bb6f39cea2328320ab2d95
This commit is contained in:
@@ -18,7 +18,7 @@ class MyRobot(wpilib.TimedRobot):
|
||||
|
||||
# Reuse buffer
|
||||
# Default to a length of 60
|
||||
self.ledData = [wpilib.AddressableLED.LEDData() for _ in range(60)]
|
||||
self.ledData = wpilib.AddressableLEDBuffer(60)
|
||||
self.led.setLength(len(self.ledData))
|
||||
|
||||
# Set the data
|
||||
|
||||
Reference in New Issue
Block a user