Closed sinapseenergia closed 7 years ago
I have found a simpler library than the one previously described. Check here: https://github.com/4ilo/ssd1306-stm32HAL
Included in LCD Library the following files: fonts.c, fonts.h, ssd1306.c and ssd1306.h This files include all functions to write message in LCD display through I2C protocol.
For example:
ssd1306_Init();
HAL_Delay(1000);
ssd1306_Fill(Black);
ssd1306_UpdateScreen();
HAL_Delay(1000);
ssd1306_SetCursor(1,2);
ssd1306_WriteString("Not Registered",Font_7x10,White);
ssd1306_SetCursor(1,19);
ssd1306_WriteString("in server (Error)",Font_7x10,White);
With result:
I suppose I can close this issue.
IoT BaseBoard can integrate I2C 1.3 inch LCD For this project this OLED should print Status Messages related to Card reading:
Reading Card Registered in Server Not Registered in server (Error) System OK (Normal status)
The I2C address for the 1.3 OLED is 0x78 The reccomended library to use is: U8gLib (But is deprecated)
U8g2 (Last Version): https://github.com/olikraus/u8g2/wiki