# Count Down with 7-Segment-Display with common Anonde 9 -> 0 # a # f |---| b # -g- # e |---| c # d # # a = 1, b = 2, c = 3, d = 4, e = 5, f = 6, g = 7 # Start (9) light [4,5] off light [1,2,3,6,7] on wait 1 # (8) light [1,2,3,4,5,6,7] on wait 1 # (7) light [4,5,6,7] off light [1,2,3] on wait 1 # (6) light [1,2] off light [3,4,5,6,7] on wait 1 # (5) light [2,5] off light [1,3,4,6,7] on wait 1 # (4) light [1,4,5] off light [2,3,6,7] on wait 1 # (3) light [5,6] off light [1,2,3,4,7] on wait 1 # (2) light [3,6] off light [1,2,4,5,7] on wait 1 # (1) light [1,4,5,6,7] off light [2,3] on wait 1 # (0) light [7] off light [1,2,3,4,5,6] on wait 1 stop # repeat