desertkun / SH1106

SH1106 driver 1.3 OLED display for STM32 using HAL
12 stars 5 forks source link

help me please #2

Open itsterit opened 3 years ago

itsterit commented 3 years ago

hello, help me please. I seem to have set everything up, but the screen shows no signs of life. I use: stm32f103c8t6 sh1106 STM32CubeIDE

sh1106.zip

itsterit commented 3 years ago

STM32F103_OLED_SH1106_SPI-master.zip I can change the contrast, I can invert the colors of the display, BUT I cannot display anything on it, what can this be related to? (some artifacts appear on the screen, I change the contrast)

itsterit commented 3 years ago

https://drive.google.com/file/d/1-JrbUz0j-081Z4kzZT9B5jXg4ZLqS-GQ/view?usp=drivesdk

bagaar-tech commented 3 years ago

Did you run the init function (SH1106_Init) ? Did you try the command to light up the full display ? Can you confirm you use a 128x64 display? Next step would be to add a pattern. And after that you can start to write characters to it, for which you need to pass a "font" description as well, you can easily find e.g. font5x7.h

afshinabdi90 commented 11 months ago

Can you post an example project of a complete setup of this library I have these itsterit problems too Thanks

Suresh6060 commented 2 weeks ago

I am getting syntax error on this line attribute((always_inline)) void LCD_Pixel(uint8_t X, uint8_t Y, uint8_t Mode)

How can it be resolved

sh1106.h:198:13: warning: inline function 'LCD_Pixel' declared but never defined 198 | inline void LCD_Pixel(uint8_t X, uint8_t Y, uint8_t Mode);

Show while compiling on STM32CubeIDE