- 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.
推薦閱讀
- Node.js Design Patterns
- GitLab Repository Management
- Hands-On C++ Game Animation Programming
- 用Flutter極速構建原生應用
- 深度強化學習算法與實踐:基于PyTorch的實現
- Julia Cookbook
- FFmpeg入門詳解:音視頻原理及應用
- 移動界面(Web/App)Photoshop UI設計十全大補
- 智能手機APP UI設計與應用任務教程
- AI自動化測試:技術原理、平臺搭建與工程實踐
- H5+移動營銷設計寶典
- AngularJS UI Development
- Java EE企業級應用開發教程:Spring+Spring MVC+MyBatis(第2版)
- Cadence Concept-HDL & Allegro原理圖與電路板設計(第2版)
- Building Probabilistic Graphical Models with Python