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

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

主站蜘蛛池模板: 柳河县| 信丰县| 潜山县| 盘山县| 库车县| 高州市| 保德县| 昌吉市| 郸城县| 澄江县| 巨鹿县| 沈阳市| 普安县| 吉水县| 将乐县| 岳池县| 松潘县| 洛浦县| 乌兰县| 忻城县| 延津县| 静宁县| 新绛县| 云南省| 昭苏县| 新乡市| 上思县| 班玛县| 平顺县| 广宁县| 瓦房店市| 浦江县| 精河县| 外汇| 莱阳市| 景洪市| 泰兴市| 兰西县| 兰溪市| 赤水市| 会东县|