Skip to main content

Section 10.3 Day 10 In-Class: The HT16K33 and Its Device Driver

Yesterday we used the I2C bus to light up the 7-segment display. Today we’ll look at the backpack chip that is driving the display and to which we are talking via I2C as well as the I2C peripheral on the STM32C0. We’ll also look at the I2C library we handed you yesterday. For now we’ll continue with the same program we flashed yesterday.
We’ll start with the display and its controller, then we’ll focus on the STM32C031C6’s I2C1 peripheral and the two pins through which it reaches the wires. Next we’ll look at the I2C library.
By the end of today your own display will show ES.28, written out of a ten-byte buffer by a device driver you wrote. It sits one layer above i2c.c. You’ll use this device driver in Lab 5.