I have a trouble with programming Raspberry Pi Pico. I am using Thonny IDE and micropython. I am just a beginner so just download code from their website (https://projects.raspberrypi.org/en/projects/getting-started-with-the-pico/6) and install it to microcontroller. But when I save this code:
from machine import Pin
import time
led = Pin(15, Pin.OUT)
button = Pin(14, Pin.IN, Pin.PULL_DOWN)
while True:
if button.value():
led.toggle()
time.sleep(0.5)
I receive this message:
Traceback (most recent call last): File "", line 10 IndentationError: unindent doesn't match any outer indent level Could you help me please?