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

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

主站蜘蛛池模板: 庆阳市| 黄大仙区| 安顺市| 玉树县| 桓台县| 武陟县| 积石山| 万州区| 虎林市| 乌海市| 儋州市| 台东县| 清丰县| 麻阳| 苍溪县| 浮山县| 徐闻县| 信阳市| 佛坪县| 沙雅县| 平度市| 延安市| 山阴县| 屯门区| 玉山县| 陈巴尔虎旗| 神农架林区| 道孚县| 五大连池市| 哈尔滨市| 丹寨县| 巴南区| 贡嘎县| 重庆市| 广丰县| 宜良县| 本溪市| 南平市| 榆中县| 彭泽县| 福建省|