Let's leave the wiring as is.
For the moment we will use PD7-PD2 as connected to F, E, D, C, B, A segments. Ignore segment G for now.
Connect DIGIT1 cathode (pin-12) to GND.
What value series resistor are you using now?
Here is the test code.
Leave this running overnight. See if it is still running in the morning.
See you tomorrow.
For the moment we will use PD7-PD2 as connected to F, E, D, C, B, A segments. Ignore segment G for now.
Connect DIGIT1 cathode (pin-12) to GND.
What value series resistor are you using now?
Here is the test code.
Code:
void setup()
{
pinMode(ledPin, OUTPUT);
DDRD = 0xFC;
}
void loop()
{
digitalWrite(ledPin, HIGH);
PORTD = 0xFC;
delay(500);
digitalWrite(ledPin, LOW);
PORTD = 0;
delay(500);
}
See you tomorrow.