- Hands-On Robotics Programming with C++
- Dinesh Tavasalkar
- 131字
- 2021-06-24 15:30:31
Wiring connections
Connecting the LED to the Raspberry Pi is straightforward. Before doing this, however, let's take a closer look at the pins of the LED:

The LED contains one positive pin and one negative pin. The long pin is the positive pin, which you can connect to any data pin of the Raspberry Pi. The short pin is the negative pin, which can be connected to the ground pin of the Raspberry Pi.
Let's connect it up. First, connect the negative pin of the LED to the ground pin (physical pin number 6) of the Raspberry Pi. Next, connect the positive pin of the LED to wiringPi pin number 15:

Now the we've connected the LED to the Raspberry Pi, let's write a program to make the LED blink.
推薦閱讀
- Web前端開發技術:HTML、CSS、JavaScript(第3版)
- 深度實踐OpenStack:基于Python的OpenStack組件開發
- Docker進階與實戰
- 程序員修煉之道:通向務實的最高境界(第2版)
- Python數據分析從0到1
- 運用后端技術處理業務邏輯(藍橋杯軟件大賽培訓教材-Java方向)
- 匯編語言編程基礎:基于LoongArch
- 自學Python:編程基礎、科學計算及數據分析(第2版)
- Java EE 8 and Angular
- Mastering Apache Camel
- PHP Microservices
- 軟件測試(慕課版)
- 零基礎PHP從入門到精通
- 每個人的Python:數學、算法和游戲編程訓練營
- RESTful Web API Design with Node.js