Skip to content

Commit fca8116

Browse files
authored
Merge pull request #1 from grantramsay/fix/default-dma-python
Fix the default DMA in python code
2 parents a271054 + b071da7 commit fca8116

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/rpi_ws281x/rpi_ws281x.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ def __setitem__(self, pos, value):
4949

5050

5151
class PixelStrip(object):
52-
def __init__(self, num, pin, freq_hz=800000, dma=5, invert=False, brightness=128, channel=0, gamma=None):
52+
def __init__(self, num, pin, freq_hz=800000, dma=10, invert=False, brightness=128, channel=0, gamma=None):
5353
"""Class to represent a SK6812/WS281x LED display. Num should be the
5454
number of pixels in the display, and pin should be the GPIO pin connected
5555
to the display signal line (must be a PWM pin like 18!). Optional
5656
parameters are freq, the frequency of the display signal in hertz (default
57-
800khz), dma, the DMA channel to use (default 5), invert, a boolean
57+
800khz), dma, the DMA channel to use (default 10), invert, a boolean
5858
specifying if the signal line should be inverted (default False), and
5959
channel, the PWM channel to use (defaults to 0).
6060
"""

0 commit comments

Comments
 (0)