woops fix serial

This commit is contained in:
ladyada 2025-01-08 10:15:09 -05:00
parent c0237922d3
commit 2663ca269f
2 changed files with 321 additions and 321 deletions

View File

@ -217,9 +217,9 @@ void setup() {
delay(100); delay(100);
Serial.println("TMC2209 Generic Device register read/write test!"); Serial.println("TMC2209 Generic Device register read/write test!");
Serial2.begin(115200); Serial1.begin(115200);
TMC2209_UART uart(&Serial2, 0); TMC2209_UART uart(&Serial1, 0);
Adafruit_GenericDevice *device = uart.createDevice(); Adafruit_GenericDevice *device = uart.createDevice();
device->begin(); device->begin();

View File

@ -43,9 +43,9 @@ void setup() {
Serial.println("Generic Device test!"); Serial.println("Generic Device test!");
Serial2.begin(115200); Serial1.begin(115200);
Adafruit_GenericDevice *device = create_uart_device(&Serial2); Adafruit_GenericDevice *device = create_uart_device(&Serial1);
device->begin(); device->begin();
uint8_t write_buf[4] = {0x5, 0x0, 0x0, 0x48}; uint8_t write_buf[4] = {0x5, 0x0, 0x0, 0x48};