...
Remember that you have to have the pigpio deamon running in the background. It can be turned on by typing sudo pigpiod
in the terminal.
Showtime
Here you can see, how the hardware setup looks like:
Now, we have to put all the parts together and see how it works. We’ll extend our API from part I by the contract manager and altimu classes. You can find the complete code below:
...