Skip to content

add write() to python driver so it can be used with pixelbuf. #22

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 2 commits into from
Feb 6, 2023

Conversation

FoamyGuy
Copy link
Contributor

This adds a write() function to the python implementation of IS31FL3741 driver class that matches the function available on the core implementation.

This allows the python implementation of IS31FL3741 to be used with the is31fl3741_pixelbuf.py wrapper class in this library. Which in turn can then be used with the led_animation library.

There are 3 new examples illustrating:

  • single animation, essentially the "simpletest" of this functionality
  • short sequence of animations
  • all existing animations in a sequence, the most advanced version that displays every currently existing animation.

All of my testing was carried out with the 13x9 RGB Matrix device.

I think this could theoretically be used with the LED Glasses as well and may negate the need for the animation helper class in the library, but I have not tried this yet.

@FoamyGuy
Copy link
Contributor Author

Forgot to mention, This change would resolve #21

@tannewt tannewt requested a review from gamblor21 January 31, 2023 19:17
Copy link
Member

@gamblor21 gamblor21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I tested on the glasses and had one comment. The animations ran fine once I made the suggested change.

Co-authored-by: Mark <56205165+gamblor21@users.noreply.github.com>
@FoamyGuy
Copy link
Contributor Author

FoamyGuy commented Feb 2, 2023

Commited that change and re-tested with the rgb matrix

Copy link
Member

@gamblor21 gamblor21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now.

@FoamyGuy FoamyGuy merged commit 5ac6531 into adafruit:main Feb 6, 2023
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Feb 7, 2023
Updating https://github.com/adafruit/Adafruit_CircuitPython_DotStar to 2.2.6 from 2.2.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_DotStar#62 from tlyu/zero-trailer
  > Add upload url to release action
  > Add .venv to .gitignore
  > Update .pylintrc for v2.15.5
  > Fix release CI files
  > Update pylint to 2.15.5
  > Updated pylint version to 2.13.0
  > Switching to composite actions

Updating https://github.com/adafruit/Adafruit_CircuitPython_IS31FL3741 to 1.4.0 from 1.3.7:
  > Merge pull request adafruit/Adafruit_CircuitPython_IS31FL3741#22 from FoamyGuy/py_driver_pixelbuf
  > Add upload url to release action
  > Add .venv to .gitignore

Updating https://github.com/adafruit/Adafruit_CircuitPython_MCP9808 to 3.3.19 from 3.3.18:
  > Merge pull request adafruit/Adafruit_CircuitPython_MCP9808#36 from tcfranks/main
  > Add upload url to release action
  > Add .venv to .gitignore

Updating https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display to 3.11.0 from 3.10.19:
  > Merge pull request adafruit/Adafruit_CircuitPython_RGB_Display#110 from makermelissa/master
  > Add upload url to release action
  > Add .venv to .gitignore
  > Update .pylintrc for v2.15.5
  > Fix release CI files
  > Update pylint to 2.15.5
  > Updated pylint version to 2.13.0
  > Switching to composite actions

Updating https://github.com/adafruit/Adafruit_CircuitPython_ST7735R to 1.5.10 from 1.5.9:
  > Merge pull request adafruit/Adafruit_CircuitPython_ST7735R#30 from makermelissa/master
  > Add upload url to release action
  > Add .venv to .gitignore

Updating https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_Layout to 1.19.13 from 1.19.12:
  > Merge pull request adafruit/Adafruit_CircuitPython_DisplayIO_Layout#80 from jposada202020/updating_examples

Updating https://github.com/adafruit/Adafruit_CircuitPython_HTTPServer to 2.3.0 from 2.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_HTTPServer#37 from matemaciek/main
  > Merge pull request adafruit/Adafruit_CircuitPython_HTTPServer#38 from matemaciek/patch-1
  > Add upload url to release action

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants