- Python Programming with Raspberry Pi
- Sai Yamanoor Srihari Yamanoor
- 110字
- 2021-07-02 23:48:46
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
推薦閱讀
- Mastering Mesos
- 輕松學C語言
- PowerShell 3.0 Advanced Administration Handbook
- 一本書玩轉數據分析(雙色圖解版)
- 數據挖掘實用案例分析
- PyTorch深度學習實戰
- Multimedia Programming with Pure Data
- Windows游戲程序設計基礎
- C語言寶典
- 大數據技術基礎:基于Hadoop與Spark
- SMS 2003部署與操作深入指南
- Mastering Geospatial Analysis with Python
- HBase Essentials
- 計算機硬件技術基礎(第2版)
- Spark Streaming實時流式大數據處理實戰