Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/Nereuxofficial/nostd-wifi-lamp

A no-std esp32 Wifi Lamp
https://github.com/Nereuxofficial/nostd-wifi-lamp

embedded esp32 neopixel no-std rust w2812b wifi-lamp

Last synced: 25 days ago
JSON representation

A no-std esp32 Wifi Lamp

Lists

README

        

# Nostd-wifi-lamp
[![License](https://img.shields.io/badge/License-AGPLv3-blue?style=flat-square)](#license)
[![issues - Nereuxofficial](https://img.shields.io/github/issues/Nereuxofficial/nostd-wifi-lamp?style=flat-square)](https://github.com/Nereuxofficial/nostd-wifi-lamp/issues)
![Commits/m](https://img.shields.io/github/commit-activity/m/Nereuxofficial/nostd-wifi-lamp?style=flat-square)

![image](https://user-images.githubusercontent.com/37740907/234689372-d34c1a6a-9ef1-4e9d-9ad7-e375131d3512.png)
![image](https://user-images.githubusercontent.com/37740907/234694404-828c6bfc-2ea6-4a56-9bc0-13f2fca3bffb.png)

A Wi-Fi controllable lamp written in Rust for the ESP32 using esp-hal. This was created for a blog post you can read
[here](https://nereux.blog/posts/esp32-ws2812-dino-light-2/).
## Usage
Sadly, I cannot provide binaries as they include WI-FI SSID and Passwords.
After [installing espup](https://github.com/esp-rs/espup) follow these steps:

1. Install the `cargo-espflash` tool
```bash
# We need the newest espflash as of now
cargo install espflash --git https://github.com/esp-rs/cargo-espflash.git
```
2. Clone this repository
```bash
git clone https://github.com/Nereuxofficial/nostd-wifi-lamp
cd nostd-wifi-lamp
```
3. Flash it to your ESP32
```bash
export SSID="your SSID" PASSWORD="your password"
cargo run --release
```
And then enjoy your wifi light! You can now connect to the printed IP Adress in your browser or alternatively send this curl request:
```bash
curl -v -d '{"r":0,"g":0,"b":200}' http://
```

(If the last step doesn't work try pressing the `Boot` Button during the command, which always worked for me.)

## Credits
[bjoernQ](https://github.com/bjoernQ) for fixing an error where the stack overflowed into the heap and i had no idea why it was crashing.
[esp-rs](https://github.com/esp-rs/) for the Rust tooling around ESP32s