Subsection 10.1.8 Part 6: Before Next Class
Nothing new is due tonight. Tuesday’s homework,
counterTwoButtons.c, is due tomorrow, uploaded to Canvas, and we’ll open class by looking at two AI-written answers to Tuesday’s optional timer extension.
Leave the display wired. On Thursday we’ll look at the chip on the backpack more carefully and learn about the commands it can be given via the I2C protocol. We’ll derive these from the chip’s command table and its display RAM which are described in the HT16K33 datasheet. We’ll also look at the I2C peripheral on our STM32C0, its two pins and its configuration. Then you will write the device driver for the backpack chip yourself.
Today you were given the I2C library without much explanation of the code therein. We used
i2c1_byteWrite() and i2c1_memWrite() without knowing what either does, and we’ll rectify that tomorrow. We also sent three command bytes to the backpack chip that were handed to you rather than derived; we’ll look at those in the datasheet tomorrow as well.
