Alternating buffers for DMA (works only with optimization)
This commit is contained in:
parent
fe332dea5d
commit
731bba0f0e
8 changed files with 106 additions and 40 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue