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

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

主站蜘蛛池模板: 环江| 洛阳市| 玉溪市| 武威市| 金寨县| 琼结县| 中山市| 怀安县| 龙州县| 沙湾县| 孙吴县| 祁门县| 遂宁市| 琼结县| 开阳县| 佛教| 临朐县| 夏津县| 台北县| 元氏县| 锦州市| 通辽市| 五寨县| 玉田县| 综艺| 崇明县| 平和县| 青浦区| 长兴县| 雅安市| 石台县| 松江区| 二连浩特市| 西盟| 鄂托克前旗| 宣威市| 什邡市| 龙泉市| 长海县| 巴塘县| 邵东县|