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

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

主站蜘蛛池模板: 彭山县| 祁东县| 德格县| 永顺县| 开封市| 桂平市| 武山县| 奉节县| 宁德市| 友谊县| 榆林市| 三亚市| 德阳市| 河西区| 阿勒泰市| 嵊州市| 吴桥县| 博罗县| 浦城县| 衡山县| 博野县| 同仁县| 龙井市| 衡阳市| 中西区| 天全县| 达孜县| 和田县| 渑池县| 广德县| 邵阳市| 什邡市| 综艺| 克东县| 深圳市| 喜德县| 石家庄市| 保山市| 湘西| 大连市| 云阳县|