blues-notecard

Crates.ioblues-notecard
lib.rsblues-notecard
version0.3.2
sourcesrc
created_at2022-06-17 18:32:10.97646
updated_at2024-01-14 08:59:13.868182
descriptionA driver for the Blues.io Notecard
homepage
repositoryhttps://github.com/gauteh/notecard-rs
max_upload_size
id608110
size5,739,196
Gaute Hope (gauteh)

documentation

README

Crates.io Documentation tests

Rust driver for notecard

This is a rust driver for the blues.io notecard based on embedded-hal.

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));
Commit count: 85

cargo fmt