This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Adafruit 1.2" 4 digit 7-segment LED display with backpack (https://www.adafruit.com/product/1270) is connexted via the i2c bus interface. Adafruit has a quite good soldering & setup tutorial at https://learn.adafruit.com/adafruit-led-backpack/1-2-inch-7-segment-backpack, however they do a terrible job of describing in easy detail the necessary i2c writes to control the display from a language other than their provided libraries for Arduino or Python. So I've assembled a pretty comprehensive address and data to write in order to fully control the display. Please see attached images for some details. | |
digit segment numbered.jpg - shows an image of the display, along with numbers/letters along with a bitmask to use to control each segment. | |
seven segment bitmask chart.jpg - shows which bits control which segments for the digits | |
dots segment bitmask chart.jpg - shows which bits control which segments for the dots | |
Examples of writing are using the Linux i2c-tools. For example this write: | |
i2cset 1 0x |