mirror of
https://dojo.spaceturtle.ninja/cats/rgb-cat-ears-esp32.git
synced 2026-04-30 16:39:28 +02:00
ESP32 code for the RGB cat ears
- C 55.9%
- C++ 42.4%
- CMake 1.2%
- Nix 0.5%
| components | ||
| main | ||
| .envrc | ||
| .gitignore | ||
| CMakeLists.txt | ||
| flake.lock | ||
| flake.nix | ||
| Makefile | ||
| README.md | ||
| sdkconfig.defaults | ||
RGB Cat Ears: ESP32 Code
Based on ESP-IDF BLE Peripheral Example, ESP-ADF LED Pixel Display Example and ESP-IDF Native OTA Example.
Prerequisites
For normal Usage
- A device that has the ability to flash an ESP32
- This can be any device capable of running esptool or any device with WebUSB support
- Refer to the main repository for a hardware overview
For development
Nix development environment
- Ensure Nix is installed on your workstation and flakes are enabled
Classic development environment
ESP-IDF VS Code extension
- Espressif offers an official VS Code extension that has a built-in setup tool
- Try it first, before resorting to manual installation
Manual installation
- Create a directory for the toolchain:
mkdir -p ~/esp && cd ~/esp - Clone ESP-ADF version v2.7:
git clone https://github.com/espressif/esp-adf.git --recursive --branch=v2.7
- Clone ESP-IDF version v5.3.3:
git clone https://github.com/espressif/esp-idf.git --recursive --branch=v5.3.3
- Install the ESP-IDF toolchain:
cd ~/esp/esp-idf && ./install.sh all - Source the ESP-IDF environment:
. ~/esp/esp-idf/export.sh- You either have to do this for every shell you intend to build the project in, or add this to your shell profile
- Install the ESP-ADF toolchain:
cd ~/esp/esp-adf && ./install.sh - Source the ESP-ADF environment:
. ~/esp/esp-adf/export.sh- You either have to do this for every shell you intend to build the project in, or add this to your shell profile
Refer to the ESP-IDF docs and ESP-ADF docs for more details.
How to use
- Build the hardware as described in the main repository
- Flash the binary
- After flashing, use the web app to connect to the microcontroller running this software
How to develop
- If using Nix: First enter the dev shell using
nix develop - You can use VS Code with the C/C++ extension and the CMake Tools extension as an IDE
- To open VS Code in the current directory, run
code .
- To open VS Code in the current directory, run
- Run this command once to set the correct target:
idf.py set-target esp32c3 - To build and flash the project and then open the serial monitor, run the following:
idf.py build flash monitor
How to deploy
- TBD