Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 3.29 KB

File metadata and controls

45 lines (31 loc) · 3.29 KB

I2C/SPI SSD1306/SH1106 OLED display driver ported to HAL2 [STM32C562RE]

STM32/MX2/HAL2 SSD1306 project

Just a quick exercice for my Students regarding porting libraries from HAL to HAL2.

STM32/MX2/HAL2 SSD1306 in action

HAL HAL2
&hi2c1 mx_i2c1_i2c_gethandle()1
&hspi3 mx_spi3_gethandle()1
&hrng mx_rng_gethandle()
HAL_I2C_MemWrite() HAL_I2C_MASTER_MemWrite()
HAL_GPIO_EXTI_Callback() HAL_EXTI_TriggerCallback()
HAL_GPIO_EXTI_Rising_Callback() HAL_EXTI_TriggerCallback()
HAL_GPIO_EXTI_Falling_Callback() HAL_EXTI_TriggerCallback()

Missing files?

Don't worry. Just open the .ioc2 file in STM32CubeMX2 and hit the yellow button to generate the IDE project. Then open the project in STM32CubeIDE for Visual Studio Code and build it.

Ported library

Code inspirations

STM32/MX2/HAL2 SSD1306 Geme of Life

Call to action

Create your own home laboratory/workshop/garage! Get inspired by ControllersTech, DroneBot Workshop, Andreas Spiess, GreatScott!, bitluni's lab, ElectroBOOM, Phil's Lab, atomic14, That Project, Paul McWhorter, Max Imagination, Nikodem Bartnik, Stuff Made Here, Mario's Ideas, Aaed Musa, Haase Industries, and many other professional hobbyists sharing their awesome projects and tutorials! Shout-out/kudos to all of them! Promote README-driven learning.

Warning

STM32C5 series - do try it at home ❕

220+ challenges to start from: Control Engineering for Hobbyists at the Warsaw University of Technology.

Stay tuned!

0xBU

Footnotes

  1. Naming inconsistency? 2