Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.22 KB

README.md

File metadata and controls

51 lines (34 loc) · 1.22 KB

Rust BLE Embedded Gamepad

Overview

Demo of bringing up Bluetooth Low Energy (BLE) using Embedded Rust, by turning a BBC Microbit (nordic NRF52833) into a wireless game controller.

Prerequisites

controller

System libraries

nrf-sdc requires clang.

# Linux
sudo apt install llvm clang
# Windows.
choco install llvm 
# Mac
brew install llvm

Setup

cargo install cargo-binstall # binary installer tool
cargo binstall probe-rs-tools
cargo run --release

Troubleshooting

Windows

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.