Skip to content

Commit

Permalink
Merge pull request #76 from c0psrul3/board-featheresp32
Browse files Browse the repository at this point in the history
add support for Adafruit Feather ESP32
  • Loading branch information
thankthemaker authored Nov 4, 2023
2 parents 3493096 + 8427888 commit 8b83ebd
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ To build the firmware and upload it to you ESP32 MCU run
```shell
platformio run --target upload
```
OR, for custom targets
```shell
platformio run --environment <custom_env> --target upload
```

## Donate

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 29 additions & 3 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ default_envs = wemos_d1_mini32
;default_envs = nodemcu-32s
;default_envs = avaspark-rgb
;default_envs = lolin_wemos_s3_mini
;default_envs = feather_esp32
;default_envs = m5stack-stamps3

[common_env_data]
Expand All @@ -22,7 +23,7 @@ lib_deps_external =
fabianoriccardi/Melody Player @ ^2.4.0
bblanchon/ArduinoJson @ ^6.21.3
paulo-raca/Buffered Streams @ ^1.0.8
build_flags =
build_flags =
-D CONFIG_BT_NIMBLE_PINNED_TO_CORE=0
-D CONFIG_NIMBLE_STACK_USE_MEM_POOLS=1
-D CONFIG_BT_NIMBLE_ROLE_CENTRAL_DISABLED ; Disable NimBLE Client code, will save ~7kB
Expand All @@ -46,6 +47,23 @@ build_flags=
-D CAN_TX_PIN=_26
-D CAN_RX_PIN=_27

[FEATHER-ESP32]
build_flags=
${common_env_data.build_flags}
-D PIN_NEOPIXEL=4 ; DIN of WS28xx stripe for front- / backlight, only needed if WS28xx is used
; -D MOSFET_PIN_1=22 ; PWM signal for MOSFET 1 (front white, back red), only needed if COB is used
; -D MOSFET_PIN_2=23 ; PWM signal for MOSFET 2 (front red, back white), only needed if COB is used
; -D PIN_FORWARD=18 ; digital signal from Cheap Focer 2 if direction is forward
; -D PIN_BACKWARD=19 ; digital signal from Cheap Focer 2 if direction is backward
; -D PIN_BRAKE=21 ; digital signal from Cheap Focer 2 if electric motor brakes is on
-D BUZPIN=14 ; PIN for Piezo buzzer for acoustic signals (e.g. battery warning)
-D BATTERY_PIN=34 ; analog input for battery monitor, connected to voltage divider
-D LIGHT_BAR_PIN=13 ; DIN of WS28xx for battery indicator
-D VESC_RX_PIN=7 ; UART RX to Cheap Focer 2, connent to TX on CF2
-D VESC_TX_PIN=8 ; UART TX to Cheap Focer 2, connent to RX on CF2
-D CAN_TX_PIN=_26
-D CAN_RX_PIN=_27

[ESP32-S3]
build_flags=
${common_env_data.build_flags}
Expand Down Expand Up @@ -177,14 +195,22 @@ extends = env:lolin_wemos_s3_mini
build_flags = ${ESP32-S3.build_flags} -D LED_COB
custom_firmware_name = firmware_lolin_wemos_s3_mini_cob_uart

[env:m5stack-stamps3]
[env:feather_esp32]
platform = espressif32
board = m5stack-stamps3
board = featheresp32
framework = arduino
monitor_speed = 115200
upload_Speed = 921600
board_build.partitions = default.csv
lib_deps = ${common_env_data.lib_deps_external}
build_flags =
${FEATHER-ESP32.build_flags} -D LED_WS28xx -D CANBUS_ENABLED -D CANBUS_ONLY
custom_firmware_name = firmware_feather_esp32

[env:m5stack-stamps3]
platform = espressif32
board = m5stack-stamps3
framework = arduino
build_flags = ${ESP32-S3.build_flags} -D LED_WS28xx -D CANBUS_ENABLED -D CANBUS_ONLY
monitor_filters =
time
Expand Down

0 comments on commit 8b83ebd

Please sign in to comment.