Arrch:
RookieOfTheYear:
How do you go about finding the correct pin number?By looking at what pin you plugged it into on the Arduino.
So if the pins used for the values are (3,4,5,6) and (7,8,9,10), what syntax would I use to assign those?
I have written this:
int pinOne = 3;
int pinTwo = 7;
pinMode(pinOne, OUTPUT);
pinMode(pinTwo, OUTPUT);
int digitOne = temp / 10;
int digitTwo = temp % 10;
Serial.println(temp);
Serial.println(digitOne);
Serial.println(digitTwo);
digitalWrite(pinOne, HIGH);
digitalWrite(pinTwo, HIGH);