diff --git a/src/tasks/render.rs b/src/tasks/render.rs index 776fa8b..f09d5fa 100644 --- a/src/tasks/render.rs +++ b/src/tasks/render.rs @@ -16,8 +16,10 @@ pub async fn render(rmt: esp_hal::peripherals::RMT<'static>, gpio: AnyPin<'stati .expect("Failed to initialize RMT").into_async(); let rmt_channel = rmt.channel0; - let mut rmt_buffer = esp_hal_smartled::smart_led_buffer!(NUM_PIXELS); + // FIXME: I don't know why we need to add an extra bunch of pixels, but otherwise the buffer is too small? + let mut rmt_buffer = esp_hal_smartled::smart_led_buffer!(NUM_PIXELS + 25); + // FIXME: The strip is GRB, we need to fix the pixel swizzling deep within the traits let target = SmartLedsAdapterAsync::new_with_color(rmt_channel, gpio, &mut rmt_buffer); // Change this to adjust the power available; the USB spec says 500ma is the standard limit, but sometimes you can draw more from a power brick