#[repr(u8)]pub enum Brightness {
Off = 128,
L0 = 136,
L1 = 137,
L2 = 138,
L3 = 139,
L4 = 140,
L5 = 141,
L6 = 142,
L7 = 143,
}
Expand description
The brightness level.
Represents a byte that can be sent directly (as a cmd) to the TM1637
to set the brightness level.
§Bits
- 1-3: Brightness level (0-7)
- 4: Display state (0 - off, 1 - on)
- 5-7: Base address
Variants§
Off = 128
Display off.
L0 = 136
Brightness level 0. Lowest brightness.
L1 = 137
Brightness level 1.
L2 = 138
Brightness level 2.
L3 = 139
Brightness level 3.
L4 = 140
Brightness level 4.
L5 = 141
Brightness level 5.
L6 = 142
Brightness level 6.
L7 = 143
Brightness level 7. Highest brightness.
Trait Implementations§
Source§impl Clone for Brightness
impl Clone for Brightness
Source§fn clone(&self) -> Brightness
fn clone(&self) -> Brightness
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Brightness
impl Debug for Brightness
Source§impl Default for Brightness
impl Default for Brightness
Source§fn default() -> Brightness
fn default() -> Brightness
Returns the “default value” for a type. Read more
Source§impl Format for Brightness
impl Format for Brightness
impl Copy for Brightness
Auto Trait Implementations§
impl Freeze for Brightness
impl RefUnwindSafe for Brightness
impl Send for Brightness
impl Sync for Brightness
impl Unpin for Brightness
impl UnwindSafe for Brightness
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more