$ winget install python.python.3.13
$ pip install --user mpremote --break-system-packages
$ pip install -U micropython-rp2-pico_w-stubs --no-user --target ./typings
print('Hello World')
from machine import Pin
led = Pin("LED", Pin.OUT)
led.toggle()
from time import sleep_ms
from machine import Pin
led = Pin("LED", Pin.OUT)
while True:
led.toggle()
sleep_ms(500)
from machine import Pin, PWM
from time import sleep_ms
buzzer = PWM(Pin(0, Pin.OUT))
buzzer.duty_u16(0x7fff)
sleep_ms(2000)
buzzer.off()
Ohm törvénye: $R = \frac{U}{I}$