Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vrixyz/button
https://github.com/vrixyz/button
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vrixyz/button
- Owner: Vrixyz
- Created: 2020-04-24T20:35:01.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-26T11:52:28.000Z (over 4 years ago)
- Last Synced: 2024-10-30T00:04:55.654Z (3 months ago)
- Language: Rust
- Size: 737 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This project is a button sending command when it's pressed.
Currently used with https://github.com/Vrixyz/music.
# Schematics
- Bluetooth connection is used via a HC-05 module, connected as directed by https://rust-embedded.github.io/discovery/13-serial-over-bluetooth/index.html.
- External button is wired with a pull down resistor like this: ![button schematics](doc/button_schematics.png)# Installation
## Mac
I use built in bluetooth connection manager to pair the mac to the HC-05 module.
## Raspberry pi
- I connect via bluetoothctl, default-agent, pair, trust, connect.
- I encountered an issue on connect `Failed to connect: org.bluez.Error.NotAvailable`, I fixed thanks to https://www.raspberrypi.org/forums/viewtopic.php?p=947185#p947185## TODO
### Interrupts
- Resources:
- needs tweaks to be fixed: https://gist.github.com/JosephBGerber/007200db215dfdbef56fa583033bf19b
- Above fix should be `cortex_m::peripheral::NVIC::unmask(stm32::Interrupt::EXTI0)`: understood from: https://github.com/stm32-rs/stm32f4xx-hal/blob/9c0ebd7c6162fdaa9cdaf20273c6d5f4b6457708/examples/stopwatch-with-ssd1306-and-interrupts.rs#L96