Skip to content

Commit

Permalink
Merge pull request #1 from grantramsay/fix/default-dma-python
Browse files Browse the repository at this point in the history
Fix the default DMA in python code
  • Loading branch information
Gadgetoid committed Jan 25, 2018
2 parents a271054 + b071da7 commit fca8116
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/rpi_ws281x/rpi_ws281x.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
"""
Expand Down

0 comments on commit fca8116

Please sign in to comment.