Problem with oled display and hardware SPI

Hello,
I have 2.42'' OLED display with the ssd1309 controller, I can't manage to get the display to work on hardware spi. I'm using Arduino Uno and u8g2 library. When I use software spi it works normally.
I tried multiple constructors with different controllers and it works on ssd1309 and ssd1306 if I'm using software spi it works but when I change the constructor to hardware spi, display just stays black.

U8G2_SSD1306_128X64_NONAME_F_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);//--->works normaly

U8G2_SSD1306_128X64_NONAME_F_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);//---> doesnt work, black display

U8G2_SSD1309_128X64_NONAME0_F_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);  //--->works normaly

U8G2_SSD1309_128X64_NONAME0_F_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);//--->not working

I also tried adafruit ssd1306 library and it's same, works only on software spi. I also tried to change spi mode and frequency and it doesn't help. The display has 7 pin's (VSS, VDD, SCLK, SDA, RES, DC, CS)
I wired SCLK to Arduino pin 13, SDA to Arduino pin 11, RES->8, DC->9 and CS to pin 10.

looks correct... Maybe SPI is broken. Are you sure you use an original Arduino Uno?

Oliver

olikraus:
looks correct... Maybe SPI is broken. Are you sure you use an original Arduino Uno?

That matters why?

Paul__B:
That matters why?

If it is something different, then maybe the HW SPI pins are at different positions.

Oliver

olikraus:
If it is something different, then maybe the HW SPI pins are at different positions.

While there are all sorts of variations available as "clones", many of which are mendaciously described as UNOs when lacking the 32U4 auxiliary chip they are actually clones of the earlier Duemilanove and not UNOs at all, it is pretty unlikely they would have the SPI pins in different places. :astonished:

looks correct... Maybe SPI is broken. Are you sure you use an original Arduino Uno?

I'm using a clone with smd tqfp32 chip, I also have nano clone and I just test SPI by connecting nano and uno via SPI, they work normally.