Summary
In this chapter, we learned about different displays the we could connect to our board through the I2C bus. We worked with an LCD display, an RGB backlight, and then replaced it with an OLED dot matrix.
We wrote the code that took advantage of the modules and classes included in the upm
library that made it easier for us to work with LCD and OLED display and show text on them. In addition, we wrote the code that interacted with an analog servo. Instead of writing our own code to set the output duty cycle based on the desired position for the shaft, we took advantage of a specific module and a class in the upm
library. We could control the shaft to allow us to create a gauge chart to display the temperature value retrieved with a sensor. Our Python code could make things move.
Now that we are able to show data next to the board and work with servos, we will connect our IoT device to the entire world and work with cloud services, which is the topic of the next chapter.