The panel works fine with Arduino UNO under Hardware and Software SPI mode. In the FPS test that comes with U8G2 example library, it scores 13 fps which is normal.
Note I am using this board manager
However, i have recently got a genuine C8T6 and plugged it with the following standard configuration:http://dan.drown.org/stm32duino/package ... index.json
Code: Select all
SCLK (CLOCK) PA5
SDIN (MOSI) PA7
PIN_DC PB0
PIN_RESET PB1
PIN_CS (SS) PA4
Code: Select all
U8G2_SSD1322_NHD_256X64_F_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ PA5, /* data=*/ PA7, /* cs=*/ PA4, /* dc=*/ PB0, /* reset=*/ PB1);
Then I try it with hardware SPI mode but turns out it just won't show anything and U8G2 constructor does not allow assigning the clock, data pin.
Code: Select all
U8G2_SSD1325_NHD_128X64_F_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ PA4, /* dc=*/ PB0, /* reset=*/ PB1);
What is the reason for such a slow speed with STM32? Could that be the SPI link speed that I shall need to define?
A related problem here in this forum but it seems like it never gets solved...
viewtopic.php?p=9342&hilit=U8G2+HW#p9342
Thanks you all for your help!