-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 569ece8
Showing
9 changed files
with
1,810 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
set(PROJECT_VER 1.0) | ||
include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||
project(ESCape32-WiFi-Link) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
ESCape32 Wi-Fi Link | ||
=================== | ||
|
||
ESP32-based embedded configurator for [ESCape32](https://github.com/neoxic/ESCape32) electronic speed controllers. | ||
|
||
|
||
Installation | ||
------------ | ||
|
||
Download the latest pre-built combined image [here](https://github.com/neoxic/ESCape32-WiFi-Link/releases). | ||
|
||
Flash your board using the [ESP Flash Tool](https://www.espressif.com/en/support/download/other-tools) or any DFU utility, e.g. dfu-util. | ||
|
||
Visit the [ESCape32 Wiki / Wi-Fi Link](https://github.com/neoxic/ESCape32/wiki/WiFiLink) page for more information. | ||
|
||
|
||
Pinouts | ||
------- | ||
|
||
| MCU | RX | TX | LED | | ||
|----------|---:|---:|----:| | ||
| ESP32-C3 | 4 | 2 | *8 | | ||
| ESP32-S2 | 16 | 33 | 15 | | ||
|
||
(*) active low | ||
|
||
_Note:_ The above GPIO pin numbers can be changed using the `idf.py menuconfig` command. | ||
|
||
|
||
Building from source | ||
-------------------- | ||
|
||
Install the ESP-IDF environment as described [here](https://idf.espressif.com). | ||
|
||
To build for the ESP32-S2, run: | ||
|
||
``` | ||
idf.py set-target esp32s2 | ||
idf.py build | ||
``` | ||
|
||
To install on the device, run: | ||
|
||
``` | ||
idf.py flash | ||
``` | ||
|
||
To make a combined image, run: | ||
|
||
``` | ||
cd build | ||
esptool.py --chip esp32s2 merge_bin -o ESCape32-WiFi-Link-ESP32-S2.bin @flash_args | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
idf_component_register(SRCS main.c PRIV_REQUIRES espressif__mdns) | ||
configure_file(root.html root.html @ONLY) | ||
add_custom_command( | ||
OUTPUT root.html.gz | ||
COMMAND gzip -f root.html | ||
DEPENDS root.html | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} | ||
) | ||
add_custom_target(${COMPONENT_TARGET}-embedded DEPENDS root.html.gz) | ||
add_dependencies(${COMPONENT_TARGET} ${COMPONENT_TARGET}-embedded) | ||
target_add_binary_data(${COMPONENT_TARGET} ${CMAKE_CURRENT_BINARY_DIR}/root.html.gz BINARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
menu "ESCape32-WiFi-Link configuration" | ||
orsource "$IDF_PATH/examples/common_components/env_caps/$IDF_TARGET/Kconfig.env_caps" | ||
config UART_NUM | ||
int "UART port number" | ||
range 0 2 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S3 | ||
default 2 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S3 | ||
range 0 1 | ||
default 1 | ||
config UART_RX | ||
int "UART RX pin number" | ||
range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX | ||
default 4 if IDF_TARGET_ESP32C3 | ||
default 16 if IDF_TARGET_ESP32S2 | ||
default -1 | ||
config UART_TX | ||
int "UART TX pin number" | ||
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX | ||
default 2 if IDF_TARGET_ESP32C3 | ||
default 33 if IDF_TARGET_ESP32S2 | ||
default -1 | ||
config LED_PIN | ||
int "LED pin number" | ||
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX | ||
default 8 if IDF_TARGET_ESP32C3 | ||
default 15 if IDF_TARGET_ESP32S2 | ||
default 2 | ||
config LED_INV | ||
bool "LED active low" | ||
default y if IDF_TARGET_ESP32C3 | ||
default n | ||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dependencies: | ||
espressif/mdns: "*" | ||
idf: | ||
version: ">=4.1.0" |
Oops, something went wrong.