from machine import Pin
import utime
led1=Pin(2,Pin.OUT)
led2=Pin(3,Pin.OUT)
led3=Pin(6,Pin.OUT)
led4=Pin(26,Pin.OUT)
led5=Pin(22,Pin.OUT)
led6=Pin(27,Pin.OUT)
boton=Pin(16,Pin.IN,Pin.PULL_DOWN)
while True:
if boton.value()==0:
led1.value(1)
led2.value(1)
led3.value(1)
led4.value(0)
led5.value(0)
led6.value(0)
else:
led1.value(0)
led2.value(0)
led3.value(0)
led4.value(1)
led5.value(1)
led6.value(1)
pico:GP0
pico:GP1
pico:GND.1
pico:GP2
pico:GP3
pico:GP4
pico:GP5
pico:GND.2
pico:GP6
pico:GP7
pico:GP8
pico:GP9
pico:GND.3
pico:GP10
pico:GP11
pico:GP12
pico:GP13
pico:GND.4
pico:GP14
pico:GP15
pico:GP16
pico:GP17
pico:GND.5
pico:GP18
pico:GP19
pico:GP20
pico:GP21
pico:GND.6
pico:GP22
pico:RUN
pico:GP26
pico:GP27
pico:GND.7
pico:GP28
pico:ADC_VREF
pico:3V3
pico:3V3_EN
pico:GND.8
pico:VSYS
pico:VBUS
btn1:1.l
btn1:2.l
btn1:1.r
btn1:2.r
led1:A
led1:C
led2:A
led2:C
led3:A
led3:C
r1:1
r1:2
led4:A
led4:C
led5:A
led5:C
led6:A
led6:C
r2:1
r2:2