#147
Raspberry Pi Pico Onboard LED Blink (GP25 Built-in LED)
The opening project of the Raspberry Pi Pico series! We blink the onboard LED (green LED connected to GP25) to verify the board works — a classic "Hello World" first experiment. NO external components, just Pico and USB cable. Code is written in **MicroPython** (the official language backed by Raspberry Pi Foundation). Learn `machine.Pin` class, `Pin.OUT` mode, `led.on()/off()` methods, and `time.sleep()` in Thonny IDE. Follow every toggle live in the Serial (REPL) output. Also perfect to verify
0.0(0)
1 completed

The opening project of the Raspberry Pi Pico series! We blink the onboard LED (green LED connected to GP25) to verify the board works — a classic "Hello World" first experiment. NO external components, just Pico and USB cable. Code is written in **MicroPython** (the official language backed by Raspberry Pi Foundation). Learn `machine.Pin` class, `Pin.OUT` mode, `led.on()/off()` methods, and `time.sleep()` in Thonny IDE. Follow every toggle live in the Serial (REPL) output. Also perfect to verify MicroPython firmware installation — if upload succeeds, LED blinks. The Pico + MicroPython version of the classic `Blink` project.
Video
Circuit Diagram

Source Code
1# ─────────────────────────────────────────
2# BlueGrays · bluegrays.com
3# Raspberry Pi Pico Dahili LED (GP25)
4# ─────────────────────────────────────────
5# TR: Pico'nun uzerindeki dahili LED'i (GP25) yaniyor — "Hello World" projesi
6# EN: Blinks the built-in LED (GP25) on Pico — "Hello World" project
7# TR: Harici bilesen YOK - sadece Pico ve USB kablosu yeterli
8# EN: NO external components - just Pico and USB cable
9
10from machine import Pin
11import time
12
13# ============ PIN / PIN ============
14LED_PIN = 25 # TR: Dahili LED GP25'te | EN: Onboard LED on GP25
15led = Pin(LED_PIN, Pin.OUT)
16
17print("== BlueGrays: Pico Dahili LED Blink ==")
18print("LED pin: GP25")
19print("Her 500ms'de LED yakip sonuyor / LED toggles every 500ms")
20
21# ============ LOOP ============
22while True:
23 led.on() # TR: LED yak | EN: LED on
24 print("[LED] ACIK / ON")
25 time.sleep(0.5)
26
27 led.off() # TR: LED sondur | EN: LED off
28 print("[LED] KAPALI / OFF")
29 time.sleep(0.5)
30