From f976bed8c89ed937f05c400e55463f8cf555e083 Mon Sep 17 00:00:00 2001 From: catvayor Date: Sun, 13 Oct 2024 19:41:47 +0200 Subject: [PATCH] feat(agb02): mapping --- machines/agb02/agb/agb.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/machines/agb02/agb/agb.cpp b/machines/agb02/agb/agb.cpp index 904badb..4eb3094 100644 --- a/machines/agb02/agb/agb.cpp +++ b/machines/agb02/agb/agb.cpp @@ -17,10 +17,10 @@ constexpr std::pair joystick_movement(1.0, 1.0); const gpiod::line::offsets drive_down = { 21, 13, 6 }; -const gpiod::line::offsets decoder = { 2, 3, 4, 14, 15, 18, 23, 24 }; // lsbf -const gpiod::line::offsets joystick = { 0, 0, 0, 0 }; // x+, y+, x-, y- -const gpiod::line::offset black_button = 16; -const gpiod::line::offset white_button = 20; +const gpiod::line::offsets decoder = { 3, 4, 17, 27, 24, 23, 18, 15 }; // lsbf +const gpiod::line::offsets joystick = { 26, 19, 0, 5 }; // x+, y+, x-, y- +const gpiod::line::offset black_button = 20; +const gpiod::line::offset white_button = 16; const gpiod::line_settings input_settings = gpiod::line_settings()