Skip to content

Commit

Permalink
Fix for #20, v0.2.1 prep
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Mar 19, 2018
1 parent 311a855 commit da805b1
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
5 changes: 5 additions & 0 deletions library/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.2.1
-----

* BugFix: Call setup within set_brightness, fixes #20

0.2.0
-----

Expand Down
4 changes: 3 additions & 1 deletion library/microdotphat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from .font import font as _font, tinynumbers as _tinynumbers
from .matrix import NanoMatrix

__version__ = '0.2.0'
__version__ = '0.2.1'

WIDTH = 45
HEIGHT = 7
Expand Down Expand Up @@ -304,6 +304,8 @@ def set_brightness(brightness):
"""

setup()

if brightness < 0 or brightness > 1:
raise ValueError("Brightness should be between 0.0 and 1.0")

Expand Down
2 changes: 1 addition & 1 deletion library/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

setup(
name = 'microdotphat',
version = '0.2.0',
version = '0.2.1',
author = 'Philip Howard',
author_email = 'phil@pimoroni.com',
description = 'Micro Dot pHAT Driver',
Expand Down
6 changes: 6 additions & 0 deletions packaging/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
microdotphat (0.2.1) stable; urgency=low

* BugFix: Call setup within set_brightness, fixes #20

-- Phil Howard <phil@pimoroni.com> Mon, 19 Mar 2018 00:00:00 +0000

microdotphat (0.2.0) stable; urgency=low

* BugFix: Defer setup to avoid import side effects
Expand Down
6 changes: 6 additions & 0 deletions packaging/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
microdotphat (0.2.1) stable; urgency=low

* BugFix: Call setup within set_brightness, fixes #20

-- Phil Howard <phil@pimoroni.com> Mon, 19 Mar 2018 00:00:00 +0000

microdotphat (0.2.0) stable; urgency=low

* BugFix: Defer setup to avoid import side effects
Expand Down

0 comments on commit da805b1

Please sign in to comment.