pub enum Current {
Milliamps(u16),
Unlimited,
}Expand description
Electrical current budget configuration for LED strips.
See the led_strip!, led_strips!,
and led2d! macro docs for usage and context.
Variants§
Milliamps(u16)
Limit brightness to stay within a specific milliamp budget.
The max_brightness is automatically calculated to ensure the worst-case electrical current
(all LEDs at full brightness) does not exceed this limit. For example, a 16-LED strip
draws 960 mA at full brightness (assuming 60 mA per LED); with the default electrical current
limit, brightness is capped at ~26%.
See the led_strip!, led_strips!,
and led2d! macro docs for usage and context.
Unlimited
No limit — brightness stays at 100% (subject to practical hardware constraints like USB power delivery and the Pico’s circuitry).
See the led_strip!, led_strips!,
and led2d! macro docs for usage and context.
Trait Implementations§
impl Copy for Current
impl Eq for Current
impl StructuralPartialEq for Current
Auto Trait Implementations§
impl Freeze for Current
impl RefUnwindSafe for Current
impl Send for Current
impl Sync for Current
impl Unpin for Current
impl UnwindSafe for Current
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more