Skip to content

aep/pn532

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

implementation of the PN532 I2C spec in rust

useage:

use nfc::Pn532;

pub fn main() {
    let mut nfc = Pn532::open("/dev/i2c-0").unwrap();
    let fwv = nfc.get_firmware_version().unwrap();
    println!("nfc firmware version: {}.{}", fwv.1, fwv.2);

    nfc.setup().unwrap();
    println!("{:x?}", nfc.list(std::time::Duration::from_secs(1)).unwrap());
    nfc.powerdown().unwrap();
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages