#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct Brightness {
pub(crate) brightness: u8,
}
impl Default for Brightness {
fn default() -> Self {
Self::NORMAL
}
}
impl Brightness {
pub const DIMMEST: Self = Self::custom(0x00);
pub const DIM: Self = Self::custom(0x2F);
pub const NORMAL: Self = Self::custom(0x5F);
pub const BRIGHT: Self = Self::custom(0x9F);
pub const BRIGHTEST: Self = Self::custom(0xFF);
#[must_use]
pub const fn custom(brightness: u8) -> Self {
Self { brightness }
}
}