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

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

主站蜘蛛池模板: 洱源县| 抚宁县| 华安县| 新化县| 景宁| 天镇县| 三河市| 华坪县| 大同县| 石河子市| 罗江县| 盐山县| 彭州市| 二连浩特市| 安徽省| 哈密市| 娱乐| 社旗县| 奈曼旗| 凉山| 万荣县| 浮山县| 东山县| 从化市| 萍乡市| 犍为县| 双流县| 云安县| 如东县| 冷水江市| 云阳县| 永年县| 肥东县| 永城市| 太白县| 灵寿县| 绥棱县| 从江县| 泉州市| 西和县| 西安市|