[−][src]Trait cichlid::PowerEstimator
Trait for estimating the power consumption of a strand of ColorRGB
s.
Associated Constants
const R_mW: u32
The number of milliWatts used for the red component of an ColorRGB
.
This value is not the milliWatts for full brightness red component,
but rather the number of mW used per singular increment (color.red() == 1
).
const G_mW: u32
The number of milliWatts used for the green component of an ColorRGB
.
This value is not the milliWatts for full brightness green component,
but rather the number of mW used per singular increment (color.green() == 1
).
const B_mW: u32
The number of milliWatts used for the green blue of an ColorRGB
.
This value is not the milliWatts for full brightness blue component,
but rather the number of mW used per singular increment (color.blue() == 1
).
const IDLE_mW: u32
The number of milliWatts per ColorRGB
consumes constantly when powered.
Provided methods
fn estimate(rgb: ColorRGB) -> u32
Estimates the power consumption in milliwatts.
fn estimate_no_idle(rgb: ColorRGB) -> u32
Estimates the power consumption in milliwatts without taking into consideration idle power.
fn estimate_strand(strand: &[ColorRGB]) -> u32
Estimates the power consumption in milliwatts of a strand of ColorRGBs
.
fn estimate_max_brightness(
strand: &[ColorRGB],
target_brightness: u8,
max_power_mW: u32
) -> u8
strand: &[ColorRGB],
target_brightness: u8,
max_power_mW: u32
) -> u8
Estimates the maximum brightness a strand of pixels can push from a given milli-Watt power limit.
fn estimate_max_brightness_av(
strand: &[ColorRGB],
target_brightness: u8,
max_power_mA: u32,
max_power_mV: u32
) -> u8
strand: &[ColorRGB],
target_brightness: u8,
max_power_mA: u32,
max_power_mV: u32
) -> u8
Estimates the maximum brightness a strand of pixels can push from a given milli-Volt and milli-Amp limit.