Skip to content

Commit

Permalink
test line clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
PA055 committed Oct 31, 2024
1 parent 85be74a commit 6812d03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ void initialize() {
gamepad::master.X.onPress("rumble", []() { gamepad::master.rumble("..."); });
gamepad::master.Y.onPress("print1", []() { gamepad::master.print_line(1, "this should be cleared"); });
gamepad::master.Y.onRelease("clear1", []() { gamepad::master.clear(1); });
gamepad::master.Up.onPress("long", []() { gamepad::master.print_line(0, "mmmmmmmmmmmmmmm"); });
gamepad::master.Up.onLongPress("short", []() { gamepad::master.print_line(0, "i"); });
}

/**
Expand Down Expand Up @@ -78,4 +80,4 @@ void opcontrol() {

pros::delay(25); // Wait for 25 ms, then update the motor values again
}
}
}

0 comments on commit 6812d03

Please sign in to comment.