Summary
Congratulations—you have successfully written your first C++ program and run it on your Raspberry Pi! In this chapter, we first installed the wiringPi library and understood the wiringPi pin connections for the Raspberry Pi. Next, we wrote a simple C++ program to blink an led. After that, we understood the working of the LDR sensor module and turned the LED on/off depending on the input from the LDR sensor module. After this, we understood PWM and used the softPWM library to write a program to vary the brightness of the led.
In the next chapter, we will look at the different parts that are required to create a car robot. Next, we will understand the workings of DC motors and motor drivers, and learn how to create a car robot. After ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access