- 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.
推薦閱讀
- 高手是如何做產品設計的(全2冊)
- MATLAB圖像處理超級學習手冊
- Python程序設計(第3版)
- 精通網絡視頻核心開發技術
- 零基礎學單片機C語言程序設計
- 輕松上手2D游戲開發:Unity入門
- Access 2010數據庫應用技術實驗指導與習題選解(第2版)
- Python Web自動化測試設計與實現
- Practical Maya Programming with Python
- Java自然語言處理(原書第2版)
- HTML5程序設計基礎教程
- Java核心技術速學版(第3版)
- Mastering PostgreSQL 11(Second Edition)
- Mastering Chef Provisioning
- Go底層原理與工程化實踐