Skip to content

Commit

Permalink
Version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
neoxic committed Nov 9, 2023
0 parents commit 569ece8
Show file tree
Hide file tree
Showing 9 changed files with 1,810 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
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)
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions README.md
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
```
11 changes: 11 additions & 0 deletions main/CMakeLists.txt
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)
31 changes: 31 additions & 0 deletions main/Kconfig.projbuild
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
4 changes: 4 additions & 0 deletions main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dependencies:
espressif/mdns: "*"
idf:
version: ">=4.1.0"
Loading

0 comments on commit 569ece8

Please sign in to comment.