- 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.
推薦閱讀
- FuelPHP Application Development Blueprints
- Node.js Design Patterns
- LabVIEW Graphical Programming Cookbook
- Arduino by Example
- MATLAB實用教程
- Mastering Apache Maven 3
- HoloLens與混合現實開發
- R語言數據可視化:科技圖表繪制
- 代替VBA!用Python輕松實現Excel編程
- Mastering Elasticsearch(Second Edition)
- C++ System Programming Cookbook
- Deep Learning for Natural Language Processing
- 基于MATLAB的控制系統仿真及應用
- Java語言程序設計實用教程(第2版)
- Raspberry Pi Robotic Projects