From b071da7a6d280d0737f32e8fcf6a9258708b9ed8 Mon Sep 17 00:00:00 2001 From: "Ramsay, Grant (NZ)" Date: Thu, 25 Jan 2018 11:39:33 +1300 Subject: [PATCH] Fix the default DMA in python code DMA 5 causes file system errors on PI 3 --- library/rpi_ws281x/rpi_ws281x.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/rpi_ws281x/rpi_ws281x.py b/library/rpi_ws281x/rpi_ws281x.py index bc2fc1a..006598b 100644 --- a/library/rpi_ws281x/rpi_ws281x.py +++ b/library/rpi_ws281x/rpi_ws281x.py @@ -49,12 +49,12 @@ def __setitem__(self, pos, value): class PixelStrip(object): - def __init__(self, num, pin, freq_hz=800000, dma=5, invert=False, brightness=128, channel=0, gamma=None): + def __init__(self, num, pin, freq_hz=800000, dma=10, invert=False, brightness=128, channel=0, gamma=None): """Class to represent a SK6812/WS281x LED display. Num should be the number of pixels in the display, and pin should be the GPIO pin connected to the display signal line (must be a PWM pin like 18!). Optional parameters are freq, the frequency of the display signal in hertz (default - 800khz), dma, the DMA channel to use (default 5), invert, a boolean + 800khz), dma, the DMA channel to use (default 10), invert, a boolean specifying if the signal line should be inverted (default False), and channel, the PWM channel to use (defaults to 0). """