Rust code for making lights blink to music.
- The Rust Book
- Hanning and other window functions
- FFT
- A-weighting, ISO-226:2023, and other equal-level-loudness contours
- Bitbanging with SPI
- Color spaces (HSLuv and RGB8)
- Splines and Gradients
- Gamma correction
- Level shifters
- wasm_bindgen
- reactive signals
The "core" library can be used on any platform. It does not use the std library or an allocator. This makes some things harder to build, but works on pretty much anything. There are some optional features that bring in "std" and other features.
```bash
RUST_LOG=trace cargo test --features log
```
```bash
cd musical-terminal
cargo run --release
```
```bash
rustup target add thumbv6m-none-eabi
```
```bash
cargo install cargo-hf2
```
```bash
cd musical-feather-m0
cargo check
cargo hf2 --release
```
```bash
rustup target add thumbv7m-none-eabihf
```
```bash
cargo install cargo-hf2
```
```bash
cd musical-stm32
cargo check
cargo run --release
```
- defmt instead of log in musical-lights-core