- Hands-On Robotics Programming with C++
- Dinesh Tavasalkar
- 163字
- 2024-10-30 06:31:54
Uploading the code to the Raspberry Pi
Since we are using wiringPi numbering conventions, we will add the -lwiringPi command inside the Build command so that our C++ program with the wiringPi library is compiled and built successfully. To open the Build command, click on Build | Set Build Commands. Inside the command boxes next to the Compile and Build buttons, add -lwiringPi at the end and then click OK:

Next, to compile the code, click on the compilation button (the brown icon). Finally, to upload the code to the Raspberry Pi, press the build button (the airplane icon):

The compilation icon will check for errors in the code. If there aren't any, click the build icon to test the blinking output. After building the code, the build icon will turn into a red circle. Click on the red circle to stop the program.