Alternating buffers for DMA (works only with optimization)

This commit is contained in:
Attila Body 2020-12-01 14:35:47 +01:00
parent fe332dea5d
commit 731bba0f0e
8 changed files with 106 additions and 40 deletions

View file

@ -6,8 +6,13 @@
*/
#include "LedBuffers.h"
Pixel_t g_pixels[NUMPIXELS];
uint8_t g_spibuffer[sizeof(g_pixels) * 8 / 2 + 1];
pixel_t g_pixels[NUMPIXELS] = {
{0xaa,0x55,0},
{0x55,0xaa,0xff},
{0xaa,0x55,0},
{0x55,0xaa,0xff},
{0xaa,0x55,0},
{0x55,0xaa,0xff},
};
uint8_t g_spibuffer[2][SPIBUFFER_SIZE];