firmware for my Touchscreen E-Paper Input Module for Framework Laptop 16
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

eepy-example-app: switch to eep()

arthomnix 343ad0ab a76b611f

+2 -5
+2 -5
eepy-example-app/src/main.rs
··· 3 3 4 4 extern crate panic_halt; 5 5 6 - use core::arch::asm; 7 6 use core::fmt::Write; 8 7 use embedded_graphics::draw_target::DrawTarget; 9 8 use embedded_graphics::Drawable; ··· 14 13 use eepy_gui::draw_target::EpdDrawTarget; 15 14 use eepy_gui::element::button::Button; 16 15 use eepy_gui::element::{Gui, DEFAULT_TEXT_STYLE}; 17 - use eepy_sys::input::{has_event, next_event, set_touch_enabled}; 16 + use eepy_sys::input::{eep, next_event, set_touch_enabled}; 18 17 use eepy_sys::{eepy_app, kv_store}; 19 18 20 19 fn load_counter() -> u32 { ··· 83 82 } 84 83 } 85 84 86 - if !has_event() { 87 - unsafe { asm!("wfe", "wfe") }; 88 - } 85 + eep(); 89 86 } 90 87 }