STM32 Blue Pill with SH1107 OLED Display – I2C Mode

STM32 Blue Pill with SH1107 OLED Display – I2C Mode Example

This STM32 project shows how to interface the STM32 Blue Pill board with SH1107 monochrome OLED display module that has a size of 1.5-inch and resolution of 128×128 pixel.
The example shows how to print texts and draw some shapes (circles, rectangular…) on the SH1107 OLED display which is configured to work in I2C mode.

The STM32 Blue Pill development board is based on STMicroelectronics ARM Cortex-M3 microcontroller STM32F103C8T6 running at maximum clock frequency of 72MHz. This particular development board gained popularity due to its low cost and compact size, making it a popular choice for hobbyists, students, and developers.

To use the STM32 Blue Pill, a hardware programmer, such as ST-Link, is required to upload project code to the board. A USB-to-Serial converter module can also be used to upload the code to the board, an example of this converter is the popular one from FTDI which is FT232RL module.SH1107 OLED display with STM32F103C8T6 Blue Pill hardware circuit