diff options
Diffstat (limited to 'src/Fans/DotStarLed.cpp')
-rw-r--r-- | src/Fans/DotStarLed.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fans/DotStarLed.cpp b/src/Fans/DotStarLed.cpp index 759508ae..39b825dc 100644 --- a/src/Fans/DotStarLed.cpp +++ b/src/Fans/DotStarLed.cpp @@ -26,9 +26,9 @@ namespace DotStarLed constexpr uint32_t DefaultSpiFrequencies[2] = { DefaultDotStarSpiClockFrequency, DefaultNeoPixelSpiClockFrequency }; constexpr uint32_t MinNeoPixelResetTicks = (50 * StepTimer::StepClockRate)/1000000; // 50us minimum Neopixel reset time - constexpr size_t ChunkBufferSize = 600; // the size of our DMA buffer. DotStar LEDs use 4 bytes/LED, NeoPixels use 12 bytes/LED. + constexpr size_t ChunkBufferSize = 720; // the size of our DMA buffer. DotStar LEDs use 4 bytes/LED, NeoPixels use 12 bytes/LED. constexpr unsigned int MaxDotStarChunkSize = ChunkBufferSize/4; // maximum number of DotStarLEDs we DMA to in one go. Most strips have 30 LEDs/metre. - constexpr unsigned int MaxNeoPixelChunkSize = ChunkBufferSize/12; // maximum number of NeoPixels we DMA to in one go + constexpr unsigned int MaxNeoPixelChunkSize = ChunkBufferSize/12; // maximum number of NeoPixels we can support. A full ring contains 60. static uint32_t ledType = 0; // 0 = DotStar, 1 = NeoPixel static uint32_t whenDmaFinished = 0; // the time in step clocks when we determined that the DMA had finished |