官术网_书友最值得收藏!

Blinky lights

Let's discuss an example where we make use of the Raspberry Pi Zero's GPIO. We will interface an LED to the Raspberry Pi Zero and make it blink on and off with a 1-second interval.

Let's wire up the Raspberry Pi zero to get started:

Blinky schematic generated using Fritzing

In the preceding schematic, the GPIO pin 2 is connected to the anode (the longest leg) of the LED. The cathode of the LED is connected to the ground pin of the Raspberry Pi Zero. A 330 Ohm current limiting resistor is also used to limit the flow of the current.

Breadboard connections to the Raspberry Pi Zero

主站蜘蛛池模板: 龙南县| 那曲县| 黄骅市| 义乌市| 定远县| 新化县| 博客| 苍南县| 炉霍县| 华阴市| 锡林浩特市| 关岭| 苗栗县| 灵川县| 滦平县| 五寨县| 华阴市| 濮阳市| 临邑县| 清水河县| 建德市| 晋州市| 嘉荫县| 鹤庆县| 桦甸市| 和静县| 龙州县| 昌平区| 汝州市| 和政县| 濉溪县| 铅山县| 游戏| 渑池县| 班戈县| 红桥区| 神池县| 大连市| 漠河县| 沅江市| 元氏县|