Skip to content

Instantly share code, notes, and snippets.

@maxpromer
Created May 11, 2026 16:03
Show Gist options
  • Select an option

  • Save maxpromer/e0522cab22d2ccc228667424edc5c789 to your computer and use it in GitHub Desktop.

Select an option

Save maxpromer/e0522cab22d2ccc228667424edc5c789 to your computer and use it in GitHub Desktop.
void setup() {
Serial.begin(115200);
Serial2.begin(9600, SERIAL_8N1, 4, -1); // RX pin=4, TX pin=no connect
}
void loop() {
int c = Serial2.read(); // Read data from GM65
if (c >= 0) { // if can be read
Serial.write((char) c); // send it to Serial Monitor
} else {
delay(5);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment