The pin connections on a 7-segment display for the following digits
(Turn the SPST switch on,
press the NO switch once to reset to zero)
1=b,c
2=a,b,d,e,g
3=a,b,c,d,g
4=b,c,f,g
5=a,c,d,f,g
6=a,c,d,e,f,g
7=a,b,c
8=a,b,c,d,e,f,g
9=a,b,c,f,g
0=a,b,c,d,e,f