pub enum Resolution {
High,
High2,
Low,
}Expand description
Measurement resolution modes for the BH1750 sensor.
Variants§
High
High resolution mode: 1 lx per count.
The measurement time is 120 ms, assuming the default MTreg value.
High2
High resolution mode 2: 0.5 lx per count.
The measurement time is 120 ms, assuming the default MTreg value.
Low
Low resolution mode: 4 lx per count.
The measurement time is 16 ms, assuming the default MTreg value.
Trait Implementations§
Source§impl Clone for Resolution
impl Clone for Resolution
Source§fn clone(&self) -> Resolution
fn clone(&self) -> Resolution
Returns a duplicate 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 Resolution
impl Debug for Resolution
impl Copy for Resolution
Auto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnwindSafe for Resolution
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