Uploaded April 2025 | Updated December 2026, 3 hours ago
Last video showed a discarded vape 7 seg display Charlieplexed to Arduino.
This video shows program function so anyone to develop their own program.
Big thanks to GitHub for the library github.com/turn-a-round/Arduino-Charlieplexing uses command mch.turnOn(x) to light any LED.
GitHub has an example program.
A 5 x 4 LED matrix illustrates Charlieplexing principle & how 1 LED can be lit..
"maskArray[10]" contains the digital mask info for each digit [0-9].
"unitSeg[7]" contains LED numbers for "units" display & tenSeg[7] for "tens". In "loop" a variable resistor provides a number for universal variable “val”.
“display1” procedure separates "val" into hundreds, tens & units.
"unit" is used to get "maskUnit" & "tens" to get "maskTen " from "maskNos[ ]".
"val" is displayed for a 100mS before returning to loop.
Variable "k"is used as a counter from 0 to 6 to test if a bit is set in "maskUnit" and if so to turn on segment "unitSeg[k]" . Same test is done for "maskTen".
if “hundreds” is set LED’s 14 an 15 are lit.
Last video showed a discarded vape 7 seg display Charlieplexed to Arduino.
This video shows program function so anyone to develop their own program.
Big thanks to GitHub for the library github.com/turn-a-round/Arduino-Charlieplexing uses command mch.turnOn(x) to light any LED.
GitHub has an example program.
A 5 x 4 LED matrix illustrates Charlieplexing principle & how 1 LED can be lit..
"maskArray[10]" contains the digital mask info for each digit [0-9].
"unitSeg[7]" contains LED numbers for "units" display & tenSeg[7] for "tens". In "loop" a variable resistor provides a number for universal variable “val”.
“display1” procedure separates "val" into hundreds, tens & units.
"unit" is used to get "maskUnit" & "tens" to get "maskTen " from "maskNos[ ]".
"val" is displayed for a 100mS before returning to loop.
Variable "k"is used as a counter from 0 to 6 to test if a bit is set in "maskUnit" and if so to turn on segment "unitSeg[k]" . Same test is done for "maskTen".
if “hundreds” is set LED’s 14 an 15 are lit.










