Skip to content

Commit 82aaae8

Browse files
committed
led_7seg: Add a code comment for the mapping of bit positions to segments.
1 parent 484af13 commit 82aaae8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/display/led_7seg.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
static uint8_t DAT_PIN = 10;
2525
static uint8_t CLK_PIN = 11;
2626

27-
/* TM1651, 74HC164: Alphanumeric segment arrangements. */
27+
/* TM1651, 74HC164: Alphanumeric segment arrangements.
28+
* Bit positions 0-6 correspond to conventional segment labels A-G resp. */
2829
static const uint8_t letters[] = {
2930
0x77, 0x7c, 0x58, 0x5e, 0x79, 0x71, 0x6f, 0x74, 0x04, /* a-i */
3031
0x0e, 0x08, 0x38, 0x40, 0x54, 0x5c, 0x73, 0x67, 0x50, /* j-r */

0 commit comments

Comments
 (0)