Open xmeow opened 1 year ago
In practice the phenomenon is that all pixels start from 8th with some random colors.
a manual memset(state->pxbuffer, 0, state->maxpixels*3); actually resolve this issue, but jd_alloc should already set the mem to zero. https://github.com/microsoft/jacdac-c/blob/main/services/ledstrip.c#L495
memset(state->pxbuffer, 0, state->maxpixels*3);
@smfox10
@xmeow is this still an issue?
I think this exist in the makecode editor with effects. In our local build system we made a manual memory reset to the pixel buffers.
Do you have a MakeCode program to repro this?
In practice the phenomenon is that all pixels start from 8th with some random colors.![image](https://github.com/microsoft/jacdac/assets/3390845/f5edcff6-5a43-4e12-9e28-f03c70a1d4c0)
a manual
memset(state->pxbuffer, 0, state->maxpixels*3);
actually resolve this issue, but jd_alloc should already set the mem to zero. https://github.com/microsoft/jacdac-c/blob/main/services/ledstrip.c#L495@smfox10