Commit graph

49 commits

Author SHA1 Message Date
Alec Delaney
7799387f10 Update version string 2022-08-16 18:09:13 -04:00
Dan Halbert
fdc63e8040 remove support for pypixelbuf 2022-03-25 14:35:16 -04:00
Alec Delaney
fdf471475e Add type annotations 2022-02-16 14:27:51 -05:00
Kattni Rembor
33bc5e9652 Update to use adafruit_pixelbuf. 2021-07-16 13:36:10 -04:00
Kattni Rembor
df7a258ceb Removing unnecessary import block. 2021-04-07 15:15:46 -04:00
dherrada
cc95ffb958 Ran pre-commit, added licenses 2021-02-04 14:33:59 -05:00
Roy Hooper
04854c340b add docstrings for constants, like neopixel.py, and remove duplicate BGR, make brightness property doc clearer 2020-05-10 20:21:58 -04:00
George Waters
21310b27f8 Add support for pixelbuf 2020-05-09 21:01:55 -04:00
George Waters
694fdecb7e Merge branch 'pixelbuf' of https://github.com/rhooper/Adafruit_CircuitPython_DotStar into pixelbuf 2020-05-08 15:48:32 -04:00
dherrada
0ea1ce9a55 Ran black, updated to pylint 2.x 2020-03-15 18:29:51 -04:00
Roy Hooper
49f57d3cdf fix import - adafruit_pypixelbuf 2020-01-01 20:15:12 -05:00
Roy Hooper
0509ac9cc9 use the native pixelbuf fill helper 2020-01-01 17:31:41 -05:00
Roy Hooper
84f138f99d fix docstring 2019-11-30 12:23:28 -05:00
Roy Hooper
dd29815841 subclass from Pixelbuf and add changes from master 2019-11-29 22:56:52 -05:00
Roy Hooper
6efcd0193e Merge branch 'master' into subclass 2019-11-29 19:41:32 -05:00
siddacious
e708de0a64
Revert "try to import bitbangio if busio SPI is not available" 2019-10-20 13:03:03 -07:00
siddacious
be5b20480c
Merge pull request #36 from schelmo/bitbangio
try to import bitbangio if busio SPI is not available
2019-10-20 12:59:19 -07:00
Roy Hooper
198e70d33d Fix import for new _pixelbuf api 2019-10-03 21:01:46 -04:00
Roy Hooper
02758607e2 Import _pixelbuf/pypixelbuf variant 2019-05-28 14:31:50 -04:00
Georg Nagel
d17f1179af try to import bitbangio if busio SPI is not available 2019-05-14 13:52:32 +02:00
Georg Nagel
045d6f8bc7 write data bit first before rising clock pin (in non hardware spi) 2019-05-14 13:25:49 +02:00
Phillip Burgess
0ad0510dd1 Add docstring for 'baudrate' kwarg in constructor. 2019-01-06 10:27:22 -08:00
Phillip Burgess
2d4f5469bc Fix too-long line 2018-12-24 14:22:43 -08:00
Phillip Burgess
91b53dd5a7 Add SPI baudrate passthrough 2018-12-24 14:17:35 -08:00
Brennen Bearnes
896a76d4e8 remove extraneous as e from catch 2018-10-10 14:13:39 -06:00
Brennen Bearnes
2f5d69172a catch NotImplementedError when using bitbanged pins
On the Pi / CPython, I'm getting NotImplementedError here rather than ValueError.
This pull makes the assumption that ValueError is still necessary on CircuitPython.
2018-10-10 14:06:45 -06:00
siddacious
510566c9a2 fix for issue #27, _set_value() not accepting ints 2018-09-19 01:30:20 -07:00
Dan Halbert
c5a0a9d1ab remove math dependency; other speedups 2018-05-23 23:28:14 -04:00
mcscope
8ed5aa40fe reduce scope of changes 2018-05-14 13:44:36 -07:00
mcscope
91ea188720 polish 2018-05-14 13:43:51 -07:00
mcscope
f41df7635d polish 2018-05-14 13:32:52 -07:00
mcscope
d4f2e98cca polish 2018-05-14 13:18:23 -07:00
mcscope
a89675983d Update doc 2018-05-14 13:05:39 -07:00
mcscope
401c316297 I realized rebuilding the buffer on every show is an important part of the behavior 2018-05-14 13:02:10 -07:00
mcscope
4eed4e0a8d Merge advanced dotstar and regular dotstar at Scott's direction 2018-05-14 13:02:10 -07:00
Scott Shawcroft
dfd0b4c868
Merge pull request #18 from mcscope/color_orders
Support Color Order setting
2018-05-14 15:54:33 -04:00
mcscope
1b877e1c61 start header doesn't need to be instance val 2018-05-14 12:13:57 -07:00
mcscope
a8d4010674 Typo 2018-05-14 12:13:57 -07:00
mcscope
c033bd4521 Support Color Order setting 2018-05-14 12:13:57 -07:00
Margaret Sy
befd88bac8 make dotstar size calculation in __setitem__ consistent with __getitem__ 2018-05-14 12:11:58 -04:00
Margaret Sy
2560cd0895 __getitem__ uses self._n instead of self._buf // 4
- self._buf would be incorrect if there are headers
- https://github.com/adafruit/Adafruit_CircuitPython_DotStar/issues/9
2018-05-14 12:09:28 -04:00
Matt Trentini
503e85456e Changing brightness will now update the strip if auto_write is True. See Issue #10. 2018-02-10 21:21:49 +11:00
Scott Shawcroft
bc1051c21e Turn on lint checking and consolidate python requirements.
Having the dependencies in .travis.yml makes it clearer that it
has no runtime dependencies.
2017-12-05 17:13:11 -08:00
Kattni
937ab30913 Added import math
math.ceil is used in the library but import math was not included.
2017-11-14 07:42:30 -08:00
Kattni
30485eddd0 Updated neopixels to dostars in doc
:param bool auto_write used neopixels instead of dotstars. This has been updated.
2017-10-03 11:01:31 -07:00
Dan Halbert
e1d3b10a62 Fix brightness for single pixels. Fix __getitem__ for slices.
__getitem__ was referring to .bpp, which didn't exist.
Not sure what was wrong with brightness, but I cleaned up the code a bit.
Tested on a Gemma and on a DotStar strip.
2017-09-14 13:50:13 -07:00
Scott Shawcroft
396e1a896c Use 1.0 rather than 0.99. 2017-09-12 10:36:30 -07:00
Scott Shawcroft
88fb096b0e Fix brightness. Fixes #2 2017-09-11 19:04:10 -07:00
Scott Shawcroft
14205d83ea Cookiecutter the library and update to match NeoPixel API. (#1)
Cookiecutter the library and update to match NeoPixel API.
2017-09-06 14:24:50 -07:00