STM32 Example

STM32 OLED I2C Example

Display text on SSD1306 OLED.

Code Example

ssd1306_Init();
ssd1306_SetCursor(0,0);
ssd1306_WriteString("STM32 OLED", Font_7x10, White);
ssd1306_UpdateScreen();

How it works

This STM32 example demonstrates basic peripheral configuration and HAL usage.

Frequently asked questions

Can I use STM32CubeIDE?

Yes. These examples are intended for STM32CubeIDE and STM32 HAL drivers.

Can I modify the GPIO pins?

Yes. Update GPIO pin definitions according to your board schematic.