rogerclarkmelbourne / Arduino_STM32

Arduino STM32. Hardware files to support STM32 boards, on Arduino IDE 1.8.x including LeafLabs Maple and other generic STM32F103 boards
Other
2.53k stars 1.26k forks source link

SPI OLED SSD1306 Issue #861

Closed ciko2k closed 9 months ago

ciko2k commented 2 years ago

[need to update the title SSD1306 to SH1103]

Hi, i'm using an SPI SH1106 OLED, with a BLUEPILL and rogerclark's core. all welded and with other libraries

i'm using SSD1306_128x64_spi example sketch, but it doesn't work. compiling, and programs correcly, but the OLED is like in the picture

WhatsApp Image 2021-10-09 at 15 03 56

i'm also using the U8Glib2 demo sketches, connected to HW SPI it doesn't work. via SW SPI it works and is connected like under:

U8G2_SH0116_128X64_NONAME_F_4W_SW_SPI u8g2(U8G2_R0, / clock=/ PA5, / data=/ PA7, / cs=/ PB15, / dc=/ PB13, / reset=/ PB12); in this way it works fine

thanks in advice for your time.

stevstrong commented 11 months ago

Your board doesn't seem to be SSD1306, which should look like this: https://www.makershop.de/wp-content/uploads/2017/08/oled_arduino_1_3_zoll_1.jpg So what type of board do you use? Your issue can be due to an incompatibility between SSD1306 and your board.

stevstrong commented 9 months ago

Closing this due to inactivity from OP side.