Skip to content

Commit

Permalink
LEDs: Use channel 10 for DMA
Browse files Browse the repository at this point in the history
Switch to use DMA channel 10 for LED control as per issue
jgarff/rpi_ws281x#224.
  • Loading branch information
tombettany committed Jun 19, 2018
1 parent ca4da76 commit 886ba7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
kano-peripherals (4.0.0-0) unstable; urgency=low

* Added touch-detect tool
* Switch to use DMA channel 10 for LED control

-- Team Kano <dev@kano.me> Fri, 1 Jun 2018 16:00:00 +0100

Expand Down
3 changes: 2 additions & 1 deletion libs/pi_hat/library/python/kano_pi_hat/kano_hat_leds.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def __init__(self, brightness=150):

self._leds = neopixel.Adafruit_NeoPixel(
KanoHatLeds.LED_COUNT,
KanoHatLeds.LED_PIN
KanoHatLeds.LED_PIN,
dma=10
)

self.set_brightness(brightness)
Expand Down

0 comments on commit 886ba7f

Please sign in to comment.