esden / notecard-rs

Rust driver for the Blues.io Notecard (https://blues.io/products/notecard/)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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));

About

Rust driver for the Blues.io Notecard (https://blues.io/products/notecard/)


Languages

Language:Rust 100.0%