diff --git a/library/CHANGELOG.txt b/library/CHANGELOG.txt index 0ea3df0..a2926fb 100644 --- a/library/CHANGELOG.txt +++ b/library/CHANGELOG.txt @@ -1,3 +1,9 @@ +0.1.0 +----- + +* Removed try/except from RPi.GPIO import, output was misleading at best +* Reverted default behaviour of clear on exit + 0.0.9 ----- diff --git a/library/blinkt.py b/library/blinkt.py index 7f98176..1d8b7bb 100644 --- a/library/blinkt.py +++ b/library/blinkt.py @@ -1,10 +1,5 @@ import atexit - -try: - import RPi.GPIO as GPIO -except ImportError as e: - print("\n\nThis library requires the RPi.GPIO module\nInstall with: sudo pip install RPi.GPIO\n\n") - raise ImportError(e) +import RPi.GPIO as GPIO DAT = 23 @@ -112,16 +107,16 @@ def set_pixel(x, r, g, b, brightness=None): def set_clear_on_exit(value=True): """Set whether Blinkt! should be cleared upon exit - By default Blinkt! will not turn off the pixels on exit, but calling:: + By default Blinkt! will turn off the pixels on exit, but calling:: - blinkt.set_clear_on_exit() + blinkt.set_clear_on_exit(False) - Will ensure that it does. + Will ensure that it does not. :param value: True or False (default True) """ global _clear_on_exit _clear_on_exit = value - atexit.register(_exit) +atexit.register(_exit) diff --git a/library/setup.py b/library/setup.py index 29278e5..3584f12 100755 --- a/library/setup.py +++ b/library/setup.py @@ -39,7 +39,7 @@ setup( name = 'blinkt', - version = '0.0.9', + version = '0.1.0', author = 'Philip Howard', author_email = 'phil@pimoroni.com', description = """Python library for driving Pimoroni Blinkt!""", diff --git a/packaging/CHANGELOG b/packaging/CHANGELOG index e9e9b9f..deb793a 100644 --- a/packaging/CHANGELOG +++ b/packaging/CHANGELOG @@ -1,3 +1,10 @@ +blinkt (0.1.0) UNRELEASED; urgency=low + + * Removed try/except from RPi.GPIO import, output was misleading at best + * Reverted default behaviour of clear on exit + + -- Phil Howard Wed, 06 Sep 2016 00:00:00 +0000 + blinkt (0.0.9) UNRELEASED; urgency=low * Added set_all method to set all pixels diff --git a/packaging/debian/changelog b/packaging/debian/changelog index e9e9b9f..deb793a 100644 --- a/packaging/debian/changelog +++ b/packaging/debian/changelog @@ -1,3 +1,10 @@ +blinkt (0.1.0) UNRELEASED; urgency=low + + * Removed try/except from RPi.GPIO import, output was misleading at best + * Reverted default behaviour of clear on exit + + -- Phil Howard Wed, 06 Sep 2016 00:00:00 +0000 + blinkt (0.0.9) UNRELEASED; urgency=low * Added set_all method to set all pixels