7 Segment Hexadecimal Letters


#1

Hi! I’m sorry to keep flooding the forum but I just keep hitting roadblocks and the work just keeps piling up ;-;

I’ve gotten my 7-seg display working and i’ve tested displaying several numbers/individual letters, but I can’t figure this out. If you’ve seen my previous posts, they all sort of come together here. I’m trying to make a 7-segment display display the time until a bus arrives, and when that time is 0 or DUE it prints DUE to the display. I can make it print an individual D, an individual E, and a combination D and E. Here’s my code so far (To print out dE)

// This #include statement was automatically added by the Particle IDE.
#include <Adafruit_LEDBackpack_RK.h>


SYSTEM_THREAD(ENABLED);

// Adafruit 4-Digit 7-Segment LED Matrix Display FeatherWing
// https://www.adafruit.com/product/3088
Adafruit_7segment matrix = Adafruit_7segment();

void setup() {
    matrix.begin(0x70);
}

void loop() {
    // print out DUE
    matrix.print(0xde, HEX);
    matrix.writeDisplay();
}

It’s more an issue of incorporating a U than anything. I’d rather not draw out the U but if there’s no other option I’m willing to. Any help would be appreciated.


#2

Use the matrix.writeDigitRaw method to set the individual segments of the 7-segment display on or off for each digit.


#3

@dpriester2 this datasheet explains the commands from different backpacks.