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

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

主站蜘蛛池模板: 凤阳县| 紫阳县| 汝南县| 深州市| 昭觉县| 乌兰浩特市| 宿迁市| 独山县| 嘉禾县| 综艺| 榆中县| 三台县| 灌阳县| 雷州市| 杂多县| 全南县| 新蔡县| 双柏县| 九江市| 赞皇县| 通许县| 察雅县| 乐昌市| 城口县| 乐清市| 盱眙县| 周宁县| 噶尔县| 阿图什市| 巴楚县| 临朐县| 定南县| 崇阳县| 德清县| 祁门县| 台前县| 津市市| 黎平县| 玉龙| 鄢陵县| 泾源县|