Skip to content

Commit

Permalink
feat: 🔧 Add support for NodeMCU and uPesy (#312)
Browse files Browse the repository at this point in the history
* feat: 🔧 Add support for NodeMCU and uPesy

Adds NodeMCU-32S and uPesy-ESP32 as build targets

* Omit uPesy
  • Loading branch information
Wilaz authored Nov 12, 2024
1 parent 78b0de6 commit 611343b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/Chipset.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@
#ifdef OPENSHOCK_FW_BOARD_DFROBOTFIREBEETLE2ESP32E
#define OPENSHOCK_BYPASSED_GPIO(pin) ((pin) == 2 || (pin) == 5)
#endif
#ifdef OPENSHOCK_FW_BOARD_NODEMCU32S
#define OPENSHOCK_BYPASSED_GPIO(pin) ((pin) == 2)
#endif
#ifndef OPENSHOCK_BYPASSED_GPIO
#define OPENSHOCK_BYPASSED_GPIO(pin) (false)
#endif
Expand Down
7 changes: 7 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ build_flags = ${env.build_flags}
-DOPENSHOCK_ESTOP_PIN=38
-DARDUINO_USB_CDC_ON_BOOT=1

; https://docs.platformio.org/en/stable/boards/espressif32/nodemcu-32s.html
[env:NodeMCU-32S]
board = nodemcu-32s
custom_openshock.chip = ESP32
build_flags = ${env.build_flags}
-DOPENSHOCK_LED_GPIO=2

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

Expand Down

0 comments on commit 611343b

Please sign in to comment.