adafruit / Adafruit_LED_Backpack

Adafruit LED Backpack Library for our various LED backpacks.
MIT License
299 stars 192 forks source link

Add segment name definitions for alphanumeric displays #76

Closed jonnybergdahl closed 10 months ago

jonnybergdahl commented 10 months ago

I added segment name defines to make it easier for the user to use the alphanumeric display. I also added a simple animation that shows how to use the defines.

It makes it possible to write code like this - alpha4.writeDigitRaw(0, ALPHANUM_SEG_C);, which is way more readanle than alpha4.writeDigitRaw(0, 0c0004);.

dhalbert commented 10 months ago

If you can do a diagram in ASCII in a comment, that would be even better.

jonnybergdahl commented 10 months ago

Good idea! Done.