Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/Fans
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2020-05-08 13:03:28 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-05-08 13:03:28 +0300
commit45e44993d1711618b8c2295edbdc2d935b28379c (patch)
tree1ce2f5d36c839a87394ad050b798c29c502c353f /src/Fans
parentf94e181bfdb573427f4e2e0262c08a974f82fae8 (diff)
Recognise Cura NONMESH and increase max Neopixels to 60
Diffstat (limited to 'src/Fans')
-rw-r--r--src/Fans/DotStarLed.cpp4
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