From 343ad0ab1682e921d59f157e20dc257fed3db5ef Mon Sep 17 00:00:00 2001 From: arthomnix Date: Thu, 6 Nov 2025 01:36:38 +0000 Subject: [PATCH] eepy-example-app: switch to eep() --- eepy-example-app/src/main.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/eepy-example-app/src/main.rs b/eepy-example-app/src/main.rs index 876d51c..f93adc5 100644 --- a/eepy-example-app/src/main.rs +++ b/eepy-example-app/src/main.rs @@ -3,7 +3,6 @@ extern crate panic_halt; -use core::arch::asm; use core::fmt::Write; use embedded_graphics::draw_target::DrawTarget; use embedded_graphics::Drawable; @@ -14,7 +13,7 @@ use heapless::String; use eepy_gui::draw_target::EpdDrawTarget; use eepy_gui::element::button::Button; use eepy_gui::element::{Gui, DEFAULT_TEXT_STYLE}; -use eepy_sys::input::{has_event, next_event, set_touch_enabled}; +use eepy_sys::input::{eep, next_event, set_touch_enabled}; use eepy_sys::{eepy_app, kv_store}; fn load_counter() -> u32 { @@ -83,8 +82,6 @@ fn main() { } } - if !has_event() { - unsafe { asm!("wfe", "wfe") }; - } + eep(); } } \ No newline at end of file -- 2.51.2