tasks: render: add some extra pixels for buffer space for now
This commit is contained in:
@@ -16,8 +16,10 @@ pub async fn render(rmt: esp_hal::peripherals::RMT<'static>, gpio: AnyPin<'stati
|
|||||||
.expect("Failed to initialize RMT").into_async();
|
.expect("Failed to initialize RMT").into_async();
|
||||||
let rmt_channel = rmt.channel0;
|
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);
|
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
|
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user