This is a set of patches for driving common-cathode 7 segment LED numerical display of arbitrary size from a “String” input; strings containing ASCII characters are also supported and will be more-or-less displayed within the limits of a 7 segment display.
Anode lines to all segments of each digit of the digits in the display are connected to the same ports via current-limiting resistors. Cathode port selection is implemented as a variadic patch node where you drag out the box and add as many output port numbers as digits you have and connect each segment’s cathode to those. The digits are multiplexed and scanned at user-defined frequency to reduce pin count.
Longer sequences of numerals or characters are also supported, if the size of the input text exceeds the number of physical characters in the display the text will be scrolled, like one of those LED message boards.
This is a first draft, video clip of it in action will follow along with revisions to follow but it should be more-or-less usable as is currently, I have a 2 digit red LED display up and running on a breadboard scrolling pretty nice right now!
7SegmentLED.xodball (25.0 KB)