From 6812d03ff37669e7776127d1d95aa61e0a39a937 Mon Sep 17 00:00:00 2001 From: lufimio Date: Thu, 31 Oct 2024 14:00:20 -0400 Subject: [PATCH] test line clearing --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index c168570..3329be2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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"); }); } /** @@ -78,4 +80,4 @@ void opcontrol() { pros::delay(25); // Wait for 25 ms, then update the motor values again } -} \ No newline at end of file +}