File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ build_flags =
2525 -D ELEGANTOTA_USE_ASYNC_WEBSERVER =1
2626 -D FIRMWARE_VERSION_RAW =${sysenv.FIRMWARE_VERSION}
2727 -D CHIP_FAMILY_RAW =${sysenv.CHIP_FAMILY}
28+ ; -D FILAMENT_RUNOUT_PIN=12
29+ ; -D MOVEMENT_SENSOR_PIN=13
2830
2931[env:esp32-dev]
3032board = esp32dev
@@ -72,4 +74,29 @@ build_flags =
7274 ${common.build_flags}
7375lib_deps =
7476 ${common.lib_deps}
75- extra_scripts = merge_bin.py
77+ extra_scripts = merge_bin.py
78+
79+ [env:seeed_xiao_esp32s3-dev]
80+ board = seeed_xiao_esp32s3
81+ platform = ${common.platform}
82+ framework = ${common.framework}
83+ board_build.filesystem = littlefs
84+ build_flags =
85+ ${common.build_flags}
86+ -D FILAMENT_RUNOUT_PIN =5
87+ -D MOVEMENT_SENSOR_PIN =6
88+ lib_deps =
89+ ${common.lib_deps}
90+
91+ [env:seeed_xiao_esp32s-build]
92+ board = seeed_xiao_esp32s3
93+ platform = ${common.platform}
94+ framework = ${common.framework}
95+ board_build.filesystem = littlefs
96+ build_flags =
97+ ${common.build_flags}
98+ -D FILAMENT_RUNOUT_PIN =5
99+ -D MOVEMENT_SENSOR_PIN =6
100+ lib_deps =
101+ ${common.lib_deps}
102+ extra_scripts = merge_bin.py
Original file line number Diff line number Diff line change 99
1010#define CARBON_CENTAURI_PORT 3030
1111
12- // Pin definitions
12+ // Pin definitions - can be overridden via build flags
13+ #ifndef FILAMENT_RUNOUT_PIN
1314#define FILAMENT_RUNOUT_PIN 12
15+ #endif
16+
17+ #ifndef MOVEMENT_SENSOR_PIN
1418#define MOVEMENT_SENSOR_PIN 13
19+ #endif
1520
1621// Status codes
1722typedef enum
You can’t perform that action at this time.
0 commit comments