The Seven Segment Display module is now shipping! All preorders shipped out today and any new orders should ship within 48 hours.
Received mine a couple of nights ago and I've been using it to display sensor output
. As usual I've written up what I've been doing and you can find out more on this blog post
Couple of things which went through my mind as I started using this:
- A Clear() method would be nicer than calling SetValue(" ").
- How about a segment enum?
I added a file Segment.cs to the driver project and added the following code:
public enum Segment
A = 0x01,
B = 0x02,
C = 0x04,
D = 0x08,
E = 0x10,
F = 0x20,
G = 0x40,
DP = 0x80,
DecimalPoint = 0x80
After recompiling the driver I could then use the following code to make up new digits:
SevenSegmentDisplay display = new SevenSegmentDisplay();
Digit newDigit = (Digit) (Segment.A | Segment.D);
display.SetValue(newDigit, (Digit) Segment.G, Digit.D, Digit.D3);
Nice module, so much better then Debug.Print...