Replies: 2 comments 5 replies
-
U8g2 reconfigures the pins for software bit banging. Additionally HW SPI must be disabled (usually). So you have one lib requiring an active SPI subsystem and another library (u8g2) expecting a disable SPI subsystem. Neither u8g2 would always disable SPI nor would your other lib enable SPI all the time.
Two most important reasons is "timing" and "voltage level" (ST7920 expects 5V logic levels!)
Yes, but it will not help to allow SW SPI together with a HW SPI device.
Strange, I personally would expect that HW SPI is faster. |
Beta Was this translation helpful? Give feedback.
-
You could start to reduce bus speed with u8g2.setBusClock (https://github.com/olikraus/u8g2/wiki/u8g2reference#setbusclock). |
Beta Was this translation helpful? Give feedback.
-
Hello
I have a project using an ESP32 WROOM module, ST7920 with SPI connection and a radio module sharing the same SPI bus.
When I initialise the ST7920 with the below I get some output on the display but is is corrupted badly.
U8G2_ST7920_128X64_F_HW_SPI u8g2(U8G2_R0,VCS);
When I construct using the Soft SPI constructor, the screen work great but the Radio SPI interface is not functional
U8G2_ST7920_128X64_F_SW_SPI
u8g2(U8G2_R0, VCLK, VMOSI, /* CS=*/ VCS);`So I have 2 questions:
It seems that maybe the issue can be resolved for one of the interface types, I just don't know which way to head next.
On my logic analyser it seems the clock is about 10MHz in Soft SPI mode, in HW mode it looks to be 1MHz.
Regards
Craig
Beta Was this translation helpful? Give feedback.
All reactions