SevenSegDisplay
The goal here is to use a seven Segment Display from a Java program running on a Raspberry PI.
For this example, we will be using a board like this one.
You will see that we can display more than just digits. Not all the characters are available, but you can pretty much render any text... Look at the code for details (in sevensegdisplay.SevenSegment.java
, check out the map named ALL_CHARS
).
The code contains several examples (in sevensegdisplay.samples
) that you can run to see for yourself, with the provided scripts
run.clock
run.onoff
run.inter
run.allchars
run.counter
run.allchars.inter
Prompt> sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: 70 -- -- -- -- -- -- --Detect the address as shown above.
With a minus sign, on the right