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

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

主站蜘蛛池模板: 弋阳县| 长寿区| 安吉县| 阜城县| 龙井市| 奉化市| 德州市| 钟山县| 宜君县| 汶川县| 隆昌县| 阿勒泰市| 彩票| 南汇区| 赤壁市| 莱州市| 五大连池市| 安仁县| 饶平县| 乳山市| 高安市| 武清区| 宝兴县| 南召县| 潞城市| 延川县| 上栗县| 西城区| 台中市| 霍林郭勒市| 右玉县| 清涧县| 荆州市| 泗阳县| 阿拉善左旗| 石棉县| 苍南县| 石门县| 长白| 南部县| 永寿县|