src/main/java/frc/robot/util/StreamDeckButton.java
/**
   * Starts the given command whenever the button is newly pressed.
   *
   * @param command       the command to start
   * @param interruptible whether the command is interruptible
   * @return this button, so calls can be chained
   */
Starts the given command whenever the button is newly pressed.
@param command       the command to start
@param interruptible whether the command is interruptible
@return this button, so calls can be chained
Starts the given command whenever the button is newly pressed . @param command the command to start @param interruptible whether the command is interruptible @return this button so calls can be chained
public StreamDeckButton whenPressed(final Command command, boolean interruptible) {
    whenActive(command, interruptible);
    currentCommand = command;
    return this;
  }
public StreamDeckButton whenPressed ( final Command command , boolean interruptible ) { whenActive ( command , interruptible ) ; currentCommand = command ; return this ; }
Starts the given command whenever the button is newly pressed.
Starts the given command whenever the button is newly pressed .