klips/esp/rust/README.md
2025-09-21 12:23:36 -04:00

35 lines
972 B
Markdown

# esp/rust
```bash
shaunrd0/klips/esp/rust
├── 01_esp-idf-std # Template project for using ESP-IDF with std enabled.
├── 02_esp-gen-no-std # Template ESP32 project using no std.
├── 03_no-std-lcd # Drawing to LCD using ESP32 no std.
├── 04_no-std-aht20 # Reading temperature and humidity from a AHT20 sensor using ESP32 no std.
└── README.md
```
## Development Setup
Install Rust
```bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
You must run these commands to set up ESP before building any of these examples.
```bash
sudo apt install python3-venv
mkdir /tmp/espup && cd /tmp/espup
cargo install espup --locked
espup install
cargo install ldproxy
sudo usermod -aG dialout $USER
newgrp dialout
```
Some notes I took while setting this up for the first time: [Knoats](https://knoats.com/books/esp32/page/rust)
[Espressif Rust book](https://docs.espressif.com/projects/rust/book/introduction.html)