src/main/java/frc/robot/util/StreamDeckButton.java
/**
   * Starts the given command whenever the button is newly pressed. The command is set to be
   * interruptible.
   *
   * @param command the command to start
   * @return this button, so calls can be chained
   */
Starts the given command whenever the button is newly pressed. The command is set to be
interruptible.

@param command the command to start
@return this button, so calls can be chained
Starts the given command whenever the button is newly pressed . The command is set to be interruptible . @param command the command to start @return this button so calls can be chained
public StreamDeckButton whenPressed(final Command command) {
    whenActive(command);
    currentCommand = command;
    return this;
  }
public StreamDeckButton whenPressed ( final Command command ) { whenActive ( command ) ; currentCommand = command ; return this ; }
Starts the given command whenever the button is newly pressed.
Starts the given command whenever the button is newly pressed .