implement simple card storage retreival

This commit is contained in:
2026-08-29 14:57:55 +00:00
parent fb77f9facb
commit 07593e45f3
10 changed files with 208 additions and 5 deletions
+5 -1
View File
@@ -19,6 +19,8 @@ use creaturedex::navigation::inputs::Inputs;
use creaturedex::navigation::navigation::{self};
use creaturedex::navigation::outputs::Outputs;
use creaturedex::network::wifi::setup_wifi;
use creaturedex::storage::cardstore::CardStore;
use creaturedex::storage::store::Store;
use embassy_executor::Spawner;
use embedded_graphics::pixelcolor::BinaryColor;
use embedded_graphics::{
@@ -102,7 +104,9 @@ async fn main(spawner: Spawner) {
);
}
setup_wifi(peripherals.WIFI, peripherals.FLASH, &spawner).await;
let store = Store::new(peripherals.FLASH).expect("Could not initialize Flash Store");
let card_store = CardStore::new(store).expect("Could not initialize Card Store");
//setup_wifi(peripherals.WIFI, peripherals.FLASH, &spawner).await;
let mut nfc_driver = NfcPn532Driver::new(AtomicDevice::new(shared_i2c));
if nfc_driver.configure_sam().await.is_ok() {