esp-hal-MFRC522
Non-blocking RFID library for esp-hal (maybe for other hal's in the future). This project is just "port" of this Arduino Library.
Example
let dma = new;
let dma_chan = dma.channel0;
let = dma_descriptors!;
let dma_chan = dma_chan.configure_for_async;
let cs = new;
let spi = new;
let spi: = spi.with_sck.with_miso.with_mosi;
let spi: =
spi.with_dma;
//mfrc522_esp_hal::MFRC522::new(spi, cs, || esp_hal::time::current_time().ticks());
let mut mfrc522 = MFRC522new; // embassy-time feature is enabled,
// so no need to pass current_time
// function
_ = mfrc522.pcd_init.await;
_ = mfrc522.pcd_selftest.await;
debug!;
if !mfrc522.pcd_is_init.await
loop
TODO
- Change some functions to be more "rust-like"
- Documentation in code
- Crates.io publish