From 67a24ae4f616e93ba38ed60fb53d316a1c4ad5a2 Mon Sep 17 00:00:00 2001 From: Tom Bettany Date: Tue, 19 Jun 2018 18:04:26 +0100 Subject: [PATCH] LEDs: Use channel 10 for DMA Switch to use DMA channel 10 for LED control as per issue https://github.com/jgarff/rpi_ws281x/issues/224. --- debian/changelog | 1 + libs/pi_hat/library/python/kano_pi_hat/kano_hat_leds.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index c5fa46b..15791e6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Fri, 1 Jun 2018 16:00:00 +0100 diff --git a/libs/pi_hat/library/python/kano_pi_hat/kano_hat_leds.py b/libs/pi_hat/library/python/kano_pi_hat/kano_hat_leds.py index 5bdba59..377bcb6 100644 --- a/libs/pi_hat/library/python/kano_pi_hat/kano_hat_leds.py +++ b/libs/pi_hat/library/python/kano_pi_hat/kano_hat_leds.py @@ -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)