simple button debounce

This commit is contained in:
2026-08-14 21:00:16 +00:00
parent e361154295
commit 77b73902b8
2 changed files with 6 additions and 7 deletions
-6
View File
@@ -60,8 +60,6 @@ async fn main(spawner: Spawner) {
let timg0 = TimerGroup::new(peripherals.TIMG0);
esp_rtos::start(timg0.timer0, sw_interrupt.software_interrupt0);
log::info!("Setup complete, entering main loop");
let display: &mut PrimaryLcdDisplay = Box::leak(Box::new(init_primary_lcd(
peripherals.SPI2,
peripherals.GPIO36,
@@ -74,10 +72,6 @@ async fn main(spawner: Spawner) {
//setup_wifi(peripherals.WIFI, peripherals.FLASH, &spawner).await;
log::info!("Setup complete, entering main loop");
let mut nav_state = NavigationState::new();
let mut nfc_driver =
NfcPn532Driver::new(peripherals.I2C0, peripherals.GPIO17, peripherals.GPIO18);
let timeout = Duration::from_millis(1000);