PI-9Boshlang‘ichPremium

Raspberry Pi Pico Button Controlled LED (Push)

First input project with Pico — button read! LED lights while button is pressed, off when released. This is the big step after LED animations: signal input from the world to Pico. Learn Pin.IN (input mode), Pin.PULL_UP (internal pull-up resistor — standard for buttons), button.value() reading. GP14 LED, GP2 button (internal PULL_UP). Pressed = LOW (0), released = HIGH (1) — reverse logic seems confusing at first but is industry standard.

0.0(0)
11 bajarildi
Raspberry Pi Pico Button Controlled LED (Push)
Just like a doorbell: the LED stays on as long as you hold the button and goes off the moment you let go. The Raspberry Pi Pico keeps listening to the button, and all you need is one LED, one resistor and one button. This is the first time you see how to give the board a command from the outside.

Manba kodi

Bu loyihaning blokli ko‘rinishi ham bor. Bloklar ham kod kabi Premium bilan ochiladi. Blokli dasturlash nima?

Premium kontent

Bu loyihaning manba kodi, blokli ko‘rinishi va ko‘p so‘raladigan savollari Premium a’zolar uchun ochiq.

  • Barcha loyiha kodlari
  • Blokli ko‘rinish
  • Ko‘p so‘raladigan savollar