Main centres: | 1-3 business days |
Regional areas: | 3-4 business days |
Remote areas: | 3-5 business days |
Electronic components:8 Segment 4 digid red display common cathode
Do you need a display to show off your next project? This 4 Digit (8-Segment) Display is perfect for projects that need to display clock time, counters, range data, temperatures, or just about anything that uses up to 4 numbers to represent the data. The dimensions allow for easy prototyping on standard breadboards. Get yours today and complete your project!!
4 Digit (7-Segment) Display Specifications:
int timer = 200; int ledPins[] = {2, 3, 4, 5, 6, 7};void setup() { for (int thisPin = 0; thisPin < 6 ; thisPin++) { pinMode(ledPins[thisPin], OUTPUT); } pinMode(8, OUTPUT); pinMode(9, OUTPUT); pinMode(10, OUTPUT); pinMode(11, OUTPUT); pinMode(12, OUTPUT);}void loop() { digitalWrite(9, HIGH); cycle(); digitalWrite(10, HIGH); cycle(); digitalWrite(11, HIGH); cycle(); digitalWrite(12, HIGH); cycle(); Flash(); digitalWrite(12, LOW); cycle(); digitalWrite(11, LOW); cycle(); digitalWrite(10, LOW); cycle(); }void cycle(){ for (int thisPin = 0; thisPin < 6; thisPin++) { digitalWrite(ledPins[thisPin], HIGH); delay(timer); digitalWrite(ledPins[thisPin], LOW); }}void Flash(){ for (int i = 0; i < 5; i++){ digitalWrite(8, HIGH); delay(timer); digitalWrite(8, LOW); delay(timer); }}