- 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.
推薦閱讀
- Moodle Administration Essentials
- Boost C++ Application Development Cookbook(Second Edition)
- 小創客玩轉圖形化編程
- 用Flutter極速構建原生應用
- Mastering Python Networking
- Functional Kotlin
- SQL Server 2012數據庫管理與開發項目教程
- SQL基礎教程(視頻教學版)
- Scala編程實戰(原書第2版)
- Java實戰(第2版)
- MongoDB,Express,Angular,and Node.js Fundamentals
- MySQL入門很輕松(微課超值版)
- Swift High Performance
- Offer來了:Java面試核心知識點精講(框架篇)
- C Primer Plus(第6版)中文版【最新修訂版】