eadkp 0.20.0

Rust library for developing applications for NumWorks calculators running Epsilon OS. Provides low-level hardware interaction and high-level abstractions for display, input, battery, storage, and more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

/// Définit la luminosité de l'écran.
pub fn set_brightness(brightness: u8) {
    unsafe {
        eadk_backlight_set_brightness(brightness);
    }
}

/// Récupère la luminosité actuelle de l'écran.
pub fn brightness() -> u8 {
    unsafe { eadk_backlight_brightness() }
}

unsafe extern "C" {
    fn eadk_backlight_set_brightness(brightness: u8);
    fn eadk_backlight_brightness() -> u8;
}