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

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

主站蜘蛛池模板: 明星| 鄂伦春自治旗| 平谷区| 承德市| 安平县| 资溪县| 大理市| 朔州市| 章丘市| 巴中市| 昌黎县| 宁海县| 阿克陶县| 荣成市| 永平县| 工布江达县| 定陶县| 安福县| 浏阳市| 乌苏市| 六枝特区| 紫云| 方正县| 岑溪市| 英德市| 古丈县| 阳东县| 蒙阴县| 涞源县| 海安县| 巴彦淖尔市| 永城市| 无锡市| 临猗县| 崇礼县| 将乐县| 多伦县| 嵩明县| 高邮市| 商南县| 开鲁县|