diff --git a/src/lib.rs b/src/lib.rs index a27966a54..075dd33dc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -349,6 +349,13 @@ impl Navigator { } } + pub fn set_neopixel_rgbw(&mut self, colors: &[[u8; 4]]) { + self.get_rgb_behaviour() + .expect("No RGB controller available") + .set_colors_rgbw(colors) + .expect("Failed to set RGB colors"); + } + pub fn read_all(&mut self) -> SensorData { SensorData { adc: self.read_adc_all(),