Programming LED Raspberry Pi Pico
Table of Contents
Persiapan Bahan #
– Raspberry Pi Pico / Pico W
– LED
– Breadboard
– Resisor 220Ohm
– Kabel Jumper Male to Male
– Kabel Micro USD
– Aplikasi Thonny IDE
Wiring LED Ke Raspberry pi Pico #

– connect the longer end (+) of the LED to GP15 (=GPIO 15)
– connect the shorter end (-) of the LED on a free row of your breadboard
– connect one end of the resistor on the same row
– connect the other end of the resistor to a GND (ground) pin
Sample Code #
from machine import Pin
import time
led = Pin(15, Pin.OUT)
while True:
led.toggle()
time.sleep(1)
Hasil Akhir #

Powered by BetterDocs