I'm trying to add a 4-digit 7-segment display to an existing project (a temperature & relative humidity sensor) to show the temperature on the display.
I bought the display a long time ago and I it doesn't have any ID and I don't have any reference to a schematic, so I followed this article to find out both if it's a common cathode or anode and the pinout.
It turns out it's a common cathode display and the pinout goes like this (numbered from upper left):
1 -> D1
2 -> A
3 -> F
4 -> D2
5 -> D3
6 -> B
7 -> E
8 -> D
9 -> DP
10 -> C
11 -> G
12 -> D4
Where D{1,2,3,4} are the digit control pins and the rest are the segments.
So I added the SevSeg library to my project. And the sketch compiles, but when I upload it to my Arduino Uno all the LEDs in the digits 1 and 4 light up and digits two and three remain off.
I checked the pinout twice, with the same results and the display doesn't seem to be damaged. Do you see any issue on my code?
Thanks in advance!