Skip to content

Commit

Permalink
add getLength to AddressableLightStrip
Browse files Browse the repository at this point in the history
  • Loading branch information
quackitsquinn committed Apr 1, 2024
1 parent c0d5fb1 commit b0f1604
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/frc/robot/subsystems/AddressableLightStrip.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,15 @@ public AddressableLEDBuffer getLEDBuffer() {
return this.buffer;
}

/**
* Gets the length of the LED buffer.
*
* @return the length of the LED buffer.
*/
public int getLength() {
return this.buffer.getLength();
}

/** Flushes the buffer to the light strip. */
public void flush() {
this.ledStrip.setData(this.buffer);
Expand Down

0 comments on commit b0f1604

Please sign in to comment.