adafruit / Adafruit_CircuitPython_framebuf

CircuitPython framebuf module, based on the Python framebuf module
MIT License
39 stars 36 forks source link

Add 2bit grayscale support #50

Closed jedahan closed 1 year ago

jedahan commented 1 year ago

This lets people use framebuf for 2 color displays like the 8x8x2 matrix. It is a mostly mechanical port of the circuitpython GS2_HMSB code.

You can see how I use this code in https://github.com/jedahan/alarmclock , attached are terminal visualizations of python3 blinkenlights.py using some of this framebuf api:

Screenshot 2023-02-04 at 2 11 36 PM Screenshot 2023-02-04 at 2 11 25 PM

https://user-images.githubusercontent.com/32407/216785487-a1d25784-6257-4a6b-b7d6-05d1a1f43dd0.mov

jedahan commented 1 year ago

ping

jposada202020 commented 1 year ago

Hello :). Thank you for your first PR in CircuitPython, as discussed in discord an example will help the test, For new functionalities, it will be a good idea to add an example, this way people would use the new functionality.

FoamyGuy commented 1 year ago

@jedahan your terminal emulation utility is nice for testing this without access to the real hardware. If you're up to it and willing to share that in this repo under the appropriate license I would say go ahead and make a new PR that adds that script, or perhaps a modified one that is terminal only. I noticed yours runs on Raspberry pi with real hardware or terminal without. But it might be nice to have terminal only for an example / test in this repo I think.

jedahan commented 1 month ago

I just noticed this got merged, thank you!

I quickly updated the terminal framebuffer example to be a little bit more minimal, would you want a PR for something like this? https://gist.github.com/jedahan/92adc7242e20376bbad64bcbf5ace72c