Updated Features (markdown)
55
Features.md
55
Features.md
@@ -7,10 +7,63 @@ For example feedc0de only has a bluetooth BMS, therefore only feedc0de_usb and f
|
||||
Some ESP32 are 4MB and don't have enough space for dualboot ota partitions, that's why we don't compile OTA code in then.
|
||||
|
||||
# Mosfets
|
||||
Adds the "Mosfets" menu to the main menu, shows checkboxes for 3 mosfets on peters_platine, can be used to turn on lights or sirens.
|
||||
Adds the "Mosfets" menu to the main menu, shows checkboxes for 3 mosfets on peters_platine, can be used to turn on lights or sirens. 3 digital output pins are used.
|
||||
```
|
||||
-DFEATURE_MOSFETS
|
||||
-DPINS_MOSFET0=18
|
||||
-DPINS_MOSFET1=19
|
||||
-DPINS_MOSFET2=21
|
||||
```
|
||||
|
||||
# Over the Air update
|
||||
Allows flashing the firmware over WiFi, doesn't require any authentication, needs special partition table for dual-boot program partitions, also needs some setup of the environment in platformio.ini
|
||||
```
|
||||
-DFEATURE_OTA
|
||||
```
|
||||
Don't forget to set the partition table correctly:
|
||||
```
|
||||
board_build.partitions = bobbycar.csv
|
||||
```
|
||||
|
||||
Example setup for usb and OTA environments in platformio.ini
|
||||
|
||||
```
|
||||
[feedc0de]
|
||||
platform = ${common_env_data.platform}
|
||||
board = ${common_env_data.board}
|
||||
framework = ${common_env_data.framework}
|
||||
platform_packages = ${common_env_data.platform_packages}
|
||||
board_build.partitions = ${ota_common.board_build.partitions}
|
||||
lib_deps = ${common_env_data.lib_deps}
|
||||
lib_compat_mode = ${common_env_data.lib_compat_mode}
|
||||
build_unflags = ${common_env_data.build_unflags}
|
||||
build_flags =
|
||||
${common_env_data.build_flags}
|
||||
${ota_common.build_flags}
|
||||
; feedc0de specific build flags removed from example
|
||||
|
||||
[env:feedc0de_usb]
|
||||
platform = ${feedc0de.platform}
|
||||
board = ${feedc0de.board}
|
||||
framework = ${feedc0de.framework}
|
||||
platform_packages = ${feedc0de.platform_packages}
|
||||
board_build.partitions = ${feedc0de.board_build.partitions}
|
||||
lib_deps = ${feedc0de.lib_deps}
|
||||
lib_compat_mode = ${feedc0de.lib_compat_mode}
|
||||
build_unflags = ${feedc0de.build_unflags}
|
||||
build_flags = ${feedc0de.build_flags}
|
||||
|
||||
upload_speed = 921600
|
||||
upload_port = /dev/ttyUSB*
|
||||
|
||||
[env:feedc0de_ota]
|
||||
platform = ${feedc0de.platform}
|
||||
board = ${feedc0de.board}
|
||||
framework = ${feedc0de.framework}
|
||||
platform_packages = ${feedc0de.platform_packages}
|
||||
board_build.partitions = ${feedc0de.board_build.partitions}
|
||||
lib_deps = ${feedc0de.lib_deps}
|
||||
lib_compat_mode = ${feedc0de.lib_compat_mode}
|
||||
build_unflags = ${feedc0de.build_unflags}
|
||||
build_flags = ${feedc0de.build_flags}
|
||||
```
|
Reference in New Issue
Block a user