alpha
Login
or
Join now
arthomnix.dev
/
eepy
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
firmware for my Touchscreen E-Paper Input Module for Framework Laptop 16
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
eepy-example-app: switch to eep()
author
arthomnix
date
7 months ago
(Nov 6, 2025, 1:36 AM UTC)
commit
343ad0ab
343ad0ab1682e921d59f157e20dc257fed3db5ef
parent
a76b611f
a76b611f8e4d7e71bd0886e3497f7d75d00e9342
+2
-5
1 changed file
Expand all
Collapse all
Unified
Split
eepy-example-app
src
main.rs
+2
-5
eepy-example-app/src/main.rs
Reviewed
···
3
3
4
4
extern crate panic_halt;
5
5
6
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
17
-
use eepy_sys::input::{has_event, next_event, set_touch_enabled};
16
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
86
-
if !has_event() {
87
87
-
unsafe { asm!("wfe", "wfe") };
88
88
-
}
85
85
+
eep();
89
86
}
90
87
}