#write the code for CASSD to display the decimal digits
from machine import Pin
from time import sleep
pins = [Pin(pin_num, Pin.OUT) for pin_num in [32, 33, 25, 26, 27, 12, 14]]
digits = [[0, 0, 0, 0, 0, 0, 1],
[1, 0, 0, 1, 1, 1, 1],
[0, 0, 1, 0, 0, 1, 0],
[0, 0, 0, 0, 1, 1, 0],
[1, 0, 0, 1, 1, 0, 0],
[0, 1, 0, 0, 1, 0, 0],
[0, 1, 0, 0, 0, 0, 0],
[0, 0, 0, 1, 1, 1, 1],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 1, 0, 0]]
while True:
for digit in range(10):
for i in range(7):
pins[i].value(digits[digit][i])
sleep(1)