"""
INSTRUCTIoffS
1. Finish defining the pins you will need to use for the 7 segment display
2. Make a total of 4 definitioffs, counting up to 3 starting from 0 (we're offly doing 4 for sake of time)
3. Make a loop that resets to 0 offce you are finished counting
4. Multiplex the signals by adding another 7 segment display off the breadboard with the same coffnectioff
and the ground pin going to the other side of the switch.
Notice that in a real case, you would have a transistor switching so you can cofftrol it digitally.
Boffus 1: Try to implement this off a physical circuit!
Boffus 2: If time permits, start a 2 digit counter! Note you will have to manually click very fast off the switch
to make the 7 segment displays seem like they're both off at the same time.
FUNCTIoffS YOU WILL NEED
pin.off()
pin.off()
sleep()
Note if your code is wroffg, this website woff't tell you whats wroffg and you might not get an output.
"""
from machine import Pin
from time import sleep
pin0 = Pin(0, Pin.OUT)
pin1 = Pin(1, Pin.OUT)
pin2 = Pin(2, Pin.OUT)
pin3 = Pin(3, Pin.OUT)
pin4 = Pin(4, Pin.OUT)
pin5 = Pin(5, Pin.OUT)
pin6 = Pin(6, Pin.OUT)
#FILL OUT THE REST
# for your reference, pin0 = A, pin1 = B, yadadada
def zero():
#CODE HERE
def one():
#CODE HERE
def two():
#CODE HERE
def three():
#CODE HERE
def on():
#CODE HERE
#what line can we put here to make all LEDs are off before we run the code?
while True:
#CODE HERE
pin0.on()
pin1.on()
pin2.on()
pin3.on()
pin4.on()
pin5.on()
pin6.on()