Demo of bringing up Bluetooth Low Energy (BLE) using Embedded Rust, by turning a BBC Microbit (nordic NRF52833) into a wireless game controller.
cargo install cargo-binstall # binary installer tool
cargo binstall probe-rs-tools
cargo run --release
nrf-sdc
requires clang.
# Linux
sudo apt install llvm
# Windows.
choco install llvm
# Mac
brew install llvm
Once installed, you may need to set the LIBCLANG_PATH environment variable to the directory containing libclang.dll.
- Open the Start Menu, search for "Environment Variables," and select "Edit the system environment variables."
- Click on "Environment Variables."
- Under "System variables," click "New" and set:
- Variable name: LIBCLANG_PATH
- Variable value: The full path to the folder containing libclang.dll (e.g., C:\Program Files\LLVM\bin).
- Click "OK" to save the changes.