diff --git a/platformio.ini b/platformio.ini index 3b79324..d468130 100644 --- a/platformio.ini +++ b/platformio.ini @@ -64,14 +64,6 @@ build_flags = -D MCU_ESP32 monitor_filters = esp32_exception_decoder build_type = debug -[env:picohw] -platform = https://github.com/maxgerhardt/platform-raspberrypi.git -board = pico -framework = arduino -board_build.core = earlephilhower -upload_port = /media/filip/RPI-RP2 -build_flags = -D MCU_PICO -D HW_SERIAL - [env:pico] platform = https://github.com/maxgerhardt/platform-raspberrypi.git board = pico diff --git a/src/boards.h b/src/boards.h index c0ad7fe..a5f2807 100644 --- a/src/boards.h +++ b/src/boards.h @@ -70,6 +70,7 @@ #define WIRING_ADDITIONAL_STEPPERS = {{0, 1, 22, 23}} #define WIRING_STEPSTICK {13,14,15} //enable, step, dir todo: move to boards.h #define PRIMARY_SERIAL_PORT Serial + #define SECONDARY_SERIAL_PORT Serial2 #define PWM_NUM 0 #define WIRING_PWM_LEDS {} #define SUPPORT_EEPROM @@ -87,12 +88,8 @@ #define WIRING_STEPSTICK {23,22,1} //enable, step, dir todo: move to boards.h #define WIRING_SERIAL_TX 8 #define WIRING_SERIAL_RX 9 - #ifdef USB_SERIAL - #define PRIMARY_SERIAL_PORT Serial - #else - #define PRIMARY_SERIAL_PORT Serial - #define SECONDARY_SERIAL_PORT Serial2 - #endif + #define PRIMARY_SERIAL_PORT Serial + #define SECONDARY_SERIAL_PORT Serial2 #define PWM_NUM 2 #define WIRING_PWM_LEDS {25, 29} #define WIRING_CC_LED 24 diff --git a/src/config.h b/src/config.h index 92b1f6e..190f448 100644 --- a/src/config.h +++ b/src/config.h @@ -3,12 +3,6 @@ #define BOARD_AUTO //#define BOARD_SANGABOARDv5 - //if HW_SERIAL is not defined, we'll use USB serial communication - //the details are board specific and configured in boards.h - #ifndef HW_SERIAL - #define USB_SERIAL - #endif - #include //defines wiring //general settings @@ -44,9 +38,5 @@ #define LIGHT_SENSOR_ADAFRUIT_TSL2591 //#define LIGHT_SENSOR_ADAFRUIT_ADS1115 - //config for non-standard platforms - #ifndef MCU_PICO - #define SUPPORT_EEPROM - #endif #define CONFIGURED #endif \ No newline at end of file