https://github.com/gauteh/notecard-rs
Rust driver for the Blues.io Notecard (https://blues.io/products/notecard/)
https://github.com/gauteh/notecard-rs
blues embedded-hal notecard rust
Last synced: 6 months ago
JSON representation
Rust driver for the Blues.io Notecard (https://blues.io/products/notecard/)
- Host: GitHub
- URL: https://github.com/gauteh/notecard-rs
- Owner: gauteh
- Created: 2021-10-14T16:53:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-27T09:29:33.000Z (7 months ago)
- Last Synced: 2025-03-27T10:11:18.172Z (7 months ago)
- Topics: blues, embedded-hal, notecard, rust
- Language: Rust
- Homepage: https://dev.blues.io/notecard/
- Size: 5.29 MB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://crates.io/crates/blues-notecard)
[](https://docs.rs/blues-notecard/)
[](https://github.com/gauteh/notecard-rs/actions/workflows/rust.yml)# Rust driver for notecard
This is a rust driver for the [blues.io](https://blues.io) [notecard](https://blues.io/products/notecard/) based on
[embedded-hal](https://github.com/rust-embedded/embedded-hal).
```rust
use notecard::Note;let mut note = Note::new(i2c);
note.initialize().expect("could not initialize notecard.");if note.ping() {
info!("notecard found!");
} else {
error!("notecard not found!");
}info!("note: card.time");
info!("note: time: {:?}", note.card().time(&mut delay).unwrap().wait(&mut delay));info!("querying status..");
info!("status: {:?}", note.card().status(&mut delay).unwrap().wait(&mut delay));
```