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

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

主站蜘蛛池模板: 弥勒县| 宽城| 兴化市| 神池县| 福鼎市| 万年县| 枣阳市| 孟连| 德令哈市| 喀喇沁旗| 常熟市| 徐汇区| 合水县| 石家庄市| 迁安市| 奎屯市| 阜阳市| 靖远县| 华蓥市| 衡阳县| 郎溪县| 祥云县| 安阳县| 兴文县| 江口县| 凤庆县| 蓝田县| 普兰县| 景东| 遵化市| 任丘市| 浪卡子县| 易门县| 平塘县| 阳原县| 万盛区| 临江市| 富宁县| 星子县| 嘉荫县| 江油市|