https://github.com/aep/pn532
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/aep/pn532
- Owner: aep
- Created: 2019-09-02T17:59:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-05T13:14:01.000Z (over 6 years ago)
- Last Synced: 2025-02-24T14:54:34.400Z (over 1 year ago)
- Language: Rust
- Size: 1.95 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
implementation of the PN532 I2C spec in rust
useage:
```rust
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();
}
```