K Kapnula
👤
💡
课程 2 · 年级 12+

First project: Blink — the LED blinks

📖 课程 ──▶ 🎯 测验——选择翻译 ──▶ ✅ 本课已完成
🔋💡Closed circuit — bulb lights

The "Hello World" of electronics — a blinking LED. On the breadboard (solderless board): long LED leg (anode, +) → pin 13 via 220-Ω resistor → short leg (cathode, −) → GND. Without the resistor the LED burns out — like in our circuit lab! Code: setup() runs once — pinMode(13, OUTPUT). loop() runs forever — digitalWrite(13, HIGH) → delay(1000) → LOW → delay. Uploaded — and it blinks once a second.

🔌 Try our <a href="/elektro/labor" class="underline">Circuit Lab</a> first — build LED + resistor + switch in 2 minutes. All code can be tested free in the Wokwi online simulator — no board needed.
🎯
测验一下吧!
用练习巩固主题——就像课后练习
测验——选择翻译 → 🖨 练习纸
← 上一课 下一课 →
⛅ 14° Potsdam 💨 11 km/h
💶 EUR 🇺🇸 1.12 USD 🇷🇺 93.87 RUB 🇵🇱 4.39 PLN 🇺🇦 50.32 UAH EZB · daily