Posts

u8g2 library usage with STM32 MCU

Image
Several years ago I wrote couple of articles about beautiful library u8glib in context of STM32 microcontrollers. Time moves on and author of this library released newer one, u8g2. u8glib is officially deprecated and not developed anymore. We cannot afford to lose code support for our libraries, time to move to newer library! Differences between these libraries are listed there, also there are a lot of helpful information about u8g2 library. It is not so hard to modify your old u8glib code for newer library. I'll show you how to use this library with Nucleo-F401 board and SSD1306 display, bought on Aliexpress. Display connection is SPI, pins are GND, VCC, SCL(the same as SPI clock), SDA(the same as MOSI), RES and DC. Wiring is: PA5 -> SCL PA7 -> SDA PA9 -> OLED_RES PC7 -> OLED_DC I use CubeMX code generation tool to initialize all the peripheral.  OLED_RES and OLED_DC is just GPIO output. SPI1 initialized with default parameters. u8g2 library has it...

Elastic Notes: CubeMX under linux in couple with System Workbench...

Elastic Notes: CubeMX under linux in couple with System Workbench... : Yes, it really happened! During update of CubeMX, I've glanced on list of changes, and not believed to my eyes: ST released linux ver...

Elastic Notes: STM32 + SPI OLED SSD1306 + u8glib + CubeMX

Elastic Notes: STM32 + SPI OLED SSD1306 + u8glib + CubeMX : As I promised, I post info about connection SPI-based display based on SSD1306 controller using STM32 CubeMX. Its connection is even simple...

Elastic Notes: STM32 + I2C OLED SSD1306 + u8glib + CubeMX

Elastic Notes: STM32 + I2C OLED SSD1306 + u8glib + CubeMX : If you think, that title of this post consists of all possible random words, you are wrong:) This is what I've try to chain right during couple of days, but it was not so simple, as I thought at first time!

Elastic Notes: CubeMX - STM32 encoder interface

Elastic Notes: CubeMX - STM32 encoder interface : Couple a days ago, I've got struck with connection of encoder to my stm32 board. But,    the answer to the puzzle was quite simple:) So,...

Elastic Notes: System Workbench STM32 + CubeMX: cookbook

Elastic Notes: System Workbench STM32 + CubeMX: cookbook : God have came from heaven and finally partially finished our BIG problem! What? What is a problem??? Yes, problem is called "IAR, KEIL ...

Elastic Notes: Usage DMA and DAC in STM32CubeMX

Elastic Notes: Usage DMA and DAC in STM32CubeMX : ST released new HAL library, together with STM32CubeMX codegeneration tool. They are good things, but still have too few documentation. Today we'll try to make sine wave generator using DMA and DAC...