Hi. I have a controller with 18 buttons and two UART pins: TX0 and RX1. I'm trying to connect it to an Arduino Leonardo. I'm having no luck. I'm new to Arduino. I previously connected two buttons to two pins using ChatGPT, and it worked. Please help. I don't know how to read the signals the button is sending.
Show the button controller information.
Connect your controller's Tx pin to the Leonardo's Rx pin (it's ok to use that pin on Leonardo boards).
Then try something like this
void setup() {
Serial.begin(115200);
Serial1.begin(9600);
}
void loop() {
while (Serial1.available()) {
Serial.write(Serial1.read());
}
}
Set serial monitor to 115200 baud and see if you get anything when you press the controller buttons. If not, try baud rates other than 9600 for Serial1.begin().
![]()
Well that is not the correct rate
And what was the method used in that case ?
