Programming LED Raspberry Pi Pico

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

Leave a Reply

Your email address will not be published. Required fields are marked *

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare
What are you looking for in Partdo?
× How can I help you?