March 2019
Intermediate to advanced
312 pages
7h 37m
English
To write our first C++ program, we are going to use Geany Programmer's Editor. To open Geany, click on the Raspberry icon, go to Programming, and then select Geany Programmer's Editor:

After opening Geany, you will see an unsaved file called Untitled. The first thing that we need to do is save the file. Click on File | Save as and give this file the name Blink.cpp.
Inside this file, write the following code to make the LED blink. You can download the Blink.cpp program from the Chapter02 folder of GitHub repository:
#include <iostream>#include <wiringPi.h>int main(void){wiringPiSetup();pinMode(15,OUTPUT); for(;;) {digitalWrite(15,HIGH); ...