Summary
In this chapter, we learned what the I2C interface is and how to use it. We also learned how to use a 16x02 LCD display, how to display static text, how to display animations, and how to build a little CLI that can receive commands through UART and control the display.
Then, we gained a deeper understanding of the SPI interface and used it to control a 1.8" TFT display. We drew some basic shapes and then used TinyDraw
to draw circles and rectangles and TinyFont
to draw text. At this point, we have used all the important interfaces of a microcontroller, so we now have the skills to connect and control any device we need in future projects.
At the end of this chapter, we used the knowledge we'd gained in this chapter to build a simple game that is controlled by one button and is displayed on the 1.8" TFT display.
In the next chapter, we are going to learn how build a WebAssembly page using TinyGo, as well as how to use the Wi-Fi chip that is built into...