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

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

主站蜘蛛池模板: 三明市| 安远县| 开平市| 云和县| 喀什市| 杭锦后旗| 长垣县| 新龙县| 苗栗市| 永昌县| 平利县| 广西| 清徐县| 交口县| 怀柔区| 祁连县| 贵南县| 长武县| 云南省| 兴隆县| 新河县| 册亨县| 临桂县| 荥阳市| 法库县| 香港 | 伊金霍洛旗| 龙南县| 孝感市| 扎赉特旗| 三明市| 礼泉县| 阜新市| 琼结县| 济源市| 凉城县| 衡南县| 来宾市| 龙胜| 湖州市| 吴堡县|