[wpilib] Rename LEDPattern constants to all caps

This commit is contained in:
Peter Johnson
2026-03-20 22:59:58 -07:00
parent d05d3b1c78
commit 1925cf0e1f
5 changed files with 23 additions and 23 deletions

View File

@@ -612,14 +612,14 @@ public interface LEDPattern {
* A continuous gradient, where the gradient wraps around to allow for seamless scrolling
* effects.
*/
kContinuous,
CONTINUOUS,
/**
* A discontinuous gradient, where the first pixel is set to the first color of the gradient and
* the final pixel is set to the last color of the gradient. There is no wrapping effect, so
* scrolling effects will display an obvious seam.
*/
kDiscontinuous
DISCONTINUOUS
}
/**
@@ -654,8 +654,8 @@ public interface LEDPattern {
int bufLen = reader.getLength();
int ledsPerSegment =
switch (type) {
case kContinuous -> bufLen / numSegments;
case kDiscontinuous -> (bufLen - 1) / (numSegments - 1);
case CONTINUOUS -> bufLen / numSegments;
case DISCONTINUOUS -> (bufLen - 1) / (numSegments - 1);
};
for (int led = 0; led < bufLen; led++) {