Skip to content

Initial PR - RGB LED Library! #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 47 commits into from
Jun 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
c78be54
add initial cookiecutter
May 29, 2019
5d77fb8
continue cookiecutting
May 29, 2019
689ca04
adding init/deinit/brightness methods
May 29, 2019
00d7911
add color setter, duty cycle method
May 29, 2019
d1ecb94
working RGB tuples
May 29, 2019
332a5e0
add explicit isinstance check for a tuple
May 29, 2019
138e28b
adding a getter/setter for PWM frequency
May 29, 2019
7a3a87c
change current color init. value to a valid tuple
May 30, 2019
fadf436
start playing with common anode and inverting PWM
May 30, 2019
0219288
add inverted pwm toggle kwarg
May 30, 2019
638cbba
add 8b->16b value conversion and inversion handling for hex vals
May 30, 2019
d225da6
remove internal map_range in favor of simpleio map range, limit pulse…
May 30, 2019
8a96059
reducing line count...
May 30, 2019
40f4480
simplify the pwm inversion to a line for all LEDs
May 30, 2019
fc36c53
passing pylint
May 30, 2019
72b2039
add example of blinking a single-color channel rgb led
May 30, 2019
af92d16
accept a 8b tuple
May 30, 2019
a9ab0db
handle pwm inversion for 8b tuples
May 30, 2019
69958b0
set the current color to the value kwarg
May 30, 2019
bf25a1d
addin a simpletest!
May 30, 2019
dc53f20
pylinting
May 30, 2019
e715a08
fix examples, add correct pinout
May 30, 2019
a2fb613
adding examples to readme
May 30, 2019
72e3658
remove the percentage-based pwm code
May 30, 2019
dc1a369
fix requirements.txt
May 30, 2019
5f641cc
remove code.py top level
May 30, 2019
b911729
fix pwmout?
May 30, 2019
69009a0
add pulseio to autodoc
May 30, 2019
07a347c
add pylint ignore
May 30, 2019
cb53146
fix pylint ignore
May 30, 2019
17b8303
add enter/exit for contextmanager
May 31, 2019
8c899dd
add inline code examples, class description
May 31, 2019
817586c
add inline example for common anode and contextmanager usage
May 31, 2019
2bf441b
add invert pwm example, contextmanager example to readme
May 31, 2019
2c98215
pylinting
May 31, 2019
7353f76
adding indent to docstring
May 31, 2019
325d8cf
adding support for PCA9685 PWM driver
Jun 3, 2019
9174321
color should revert to initial tuple when de-init'd
Jun 3, 2019
5b0102f
add example for using this library with the pca9685, useful for Pi, etc!
Jun 3, 2019
b53be35
update README.rst to reflect compatibility with PCA, blinka
Jun 3, 2019
4271d90
update docstrings in main .py to satisfy travis
Jun 3, 2019
2f386cb
fix code block...
Jun 3, 2019
2fe47a2
fix readme neopixel leftover
Jun 3, 2019
38abddb
detect PWMChannel, PWMOut, or Pin
Jun 3, 2019
fc354d6
redo docstrings to show inclusion of pwmchannel, pwmout, microcontrol…
Jun 3, 2019
265f9ab
add more info to class docstring
Jun 3, 2019
b9a3b1a
check for frequency property btween pwmpins
Jun 4, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
*.mpy
.idea
__pycache__
_build
*.pyc
.env
build*
bundles
*.DS_Store
.eggs
dist
**/*.egg-info
Loading