7-Segment LED Display Green (#10738)

Green 7-Segment LED Display Common Cathode 10-Pin
Green 7-Segment LED Display Common Cathode 10-Pin Green 7-Segment LED Display Common Cathode 10-Pin Green 7-Segment LED Display Common Cathode 10-Pin
Price: $1.99

Common Cathode 10-Pin 1 Bit 7 Segment 0.56" Green LED Display .This Very easy to use 7-Segment LED Display can be used with the Arduino Uno To create various numbers and letters.

Part # FND530

Height 1.5 CM x Width 1.5CM Here is a link to the instructables website for easy instructions on how to use with the Arduino Uno: http://www.instructables.com/id/Seven-Segment-Display-Tutorial/

And here is the Arduino Code to get you started:

// Define the LED digit patters, from 0 - 9

// Note that these patterns are for common cathode displays

// For common anode displays, change the 1's to 0's and 0's to 1's

// 1 = LED on, 0 = LED off, in this order:

// Arduino pin: 2,3,4,5,6,7,8 byte seven_seg_digits[10][7] = { { 1,1,1,1,1,1,0 },

// = 0 { 0,1,1,0,0,0,0 },

// = 1 { 1,1,0,1,1,0,1 },

// = 2 { 1,1,1,1,0,0,1 },

// = 3 { 0,1,1,0,0,1,1 },

// = 4 { 1,0,1,1,0,1,1 },

// = 5 { 1,0,1,1,1,1,1 },

// = 6 { 1,1,1,0,0,0,0 },

// = 7 { 1,1,1,1,1,1,1 },

// = 8 { 1,1,1,0,0,1,1 }

// = 9 };

void setup() {

pinMode(2, OUTPUT);

pinMode(3, OUTPUT);

pinMode(4, OUTPUT);

pinMode(5, OUTPUT);

pinMode(6, OUTPUT);

pinMode(7, OUTPUT);

pinMode(8, OUTPUT);

pinMode(9, OUTPUT);

writeDot(0);

// start with the "dot" off

}

void writeDot(byte dot) { digitalWrite(9, dot); }

void sevenSegWrite(byte digit)

{ byte pin = 2; for (byte segCount = 0; segCount < 7; ++segCount)

{ digitalWrite(pin, seven_seg_digits[digit][segCount]); ++pin;

}

}

void loop() {

for (byte count = 10; count > 0; --count)

{ delay(1000); sevenSegWrite(count - 1); }

delay(4000);

}