Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ data/www
.vs
packages
*.sln
compile_commands.json
compile_commands.json

node_modules
3 changes: 3 additions & 0 deletions include/Chipset.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@
#ifdef OPENSHOCK_FW_BOARD_NODEMCU32S
#define OPENSHOCK_BYPASSED_GPIO(pin) ((pin) == 2)
#endif
#ifdef OPENSHOCK_FW_BOARD_ESPC3SUPERMINI
#define OPENSHOCK_BYPASSED_GPIO(pin) ((pin) == 8)
#endif
#ifndef OPENSHOCK_BYPASSED_GPIO
#define OPENSHOCK_BYPASSED_GPIO(pin) (false)
#endif
Expand Down
11 changes: 11 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,17 @@ custom_openshock.chip = ESP32
build_flags = ${env.build_flags}
-DOPENSHOCK_LED_GPIO=2

[env:ESP32-C3-SuperMini]
board = esp32-c3-devkitm-1 ; builtin
custom_openshock.chip = ESP32-C3
custom_openshock.flash_size = 4MB
build_flags = ${env.build_flags}
-DOPENSHOCK_FW_BOARD_ESPC3SUPERMINI=1
-DOPENSHOCK_LED_GPIO=8
-DOPENSHOCK_RF_TX_GPIO=3
-DOPENSHOCK_ESTOP_PIN=1
-DARDUINO_USB_MODE=1

; TODO:
; https://docs.platformio.org/en/latest/boards/espressif32/upesy_wroom.html;upesy-esp32-wroom-devkit

Expand Down