Go Down

Topic: Making a 7 segment display make an 8. (Read 675 times) previous topic - next topic

infinite4566

I'm pretty sure I've attached it correctly; however, the 7 segment display does not work.

Code: [Select]
/* this setup indicates the location of all the pins to there
   coordinating pin */
byte segA = 7;
byte segB = 6;
byte segC = 3;
byte segD = 4;
byte segE = 5;
byte segF = 8;
byte segG = 9;

void setup () {
  pinMode(segA, OUTPUT);
  pinMode(segB, OUTPUT);
  pinMode(segC, OUTPUT);
  pinMode(segD, OUTPUT);
  pinMode(segE, OUTPUT);
  pinMode(segF, OUTPUT);
  pinMode(segG, OUTPUT);
}

void loop() {
  digitalWrite(segA,HIGH);
  digitalWrite(segB,HIGH);
  digitalWrite(segC,HIGH);
  digitalWrite(segD,HIGH);
  digitalWrite(segE,HIGH);
  digitalWrite(segF,HIGH);
  digitalWrite(segG,HIGH);
}

johnwasser

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

infinite4566

Sorry i figured it out. The display is a common anode.

Go Up