Skip to content

Commit

Permalink
Fix for SD card issues, DMA 10 instead of 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Sep 11, 2017
1 parent 2888c8f commit 0985b86
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions library/UnicornHat/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.2.2
-----

* Bugfix: Switched to DMA channel 10 to avoid SD card locking + freezing

2.2.1
-----

Expand Down
6 changes: 3 additions & 3 deletions library/UnicornHat/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@

setup(
name = 'unicornhat',
version = '2.2.1',
version = '2.2.2',
author = 'Philip Howard',
author_email = 'phil@pimoroni.com',
description = """Python library for UnicornHAT/pHAT""",
long_description= open('README.txt').read() + open('CHANGELOG.txt').read(),
long_description= open('README.txt').read() + "\n" + open('CHANGELOG.txt').read(),
license = 'MIT',
keywords = 'Raspberry Pi Unicorn HAT',
url = 'http://shop.pimoroni.com',
classifiers = classifiers,
py_modules = [ 'unicornhat' ],
install_requires= ['rpi_ws281x >= 3.0.1']
install_requires= ['rpi_ws281x >= 3.0.2']
)
2 changes: 1 addition & 1 deletion library/UnicornHat/unicornhat.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
LED_COUNT = 64 # Number of LED pixels.
LED_PIN = 18 # GPIO pin connected to the pixels (must support PWM!).
LED_FREQ_HZ = 800000 # LED signal frequency in hertz (usually 800khz)
LED_DMA = 5 # DMA channel to use for generating signal (try 5)
LED_DMA = 10 # DMA channel to use for generating signal
LED_BRIGHTNESS = 128 # Set to 0 for darkest and 255 for brightest
LED_CHANNEL = 0 # PWM channel
LED_INVERT = False # True to invert the signal (when using NPN transistor level shift)
Expand Down

0 comments on commit 0985b86

Please sign in to comment.