Hardware SPI config needed for U8G2? #3103
-
I want to use the Pico2W with a 4-wire SPI OLED screen and U8G2. Also, what pins are "off limits" if I want to use the WiFi chip in the future? I got Software SPI working, but that's the easy part + it is much too slow for 256x64 px... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Check the pinout/schematics at https://www.raspberrypi.com/documentation/microcontrollers/pico-series.html . IIRC anything before GPIO23 should be untouched by the CYW43 interface, but the schematic can verify that for you. Pick either
I don't think HW SPI is any faster. The included |
Beta Was this translation helpful? Give feedback.
-
I just found out that the display that I am using is not optimal for use with u8g2 simply because it works with 16 greyscales and u8g2 is only mono color. This apparently means that u8g2 cannot produce fast refresh on this particular screen (SSD1322). |
Beta Was this translation helpful? Give feedback.
Check the pinout/schematics at https://www.raspberrypi.com/documentation/microcontrollers/pico-series.html . IIRC anything before GPIO23 should be untouched by the CYW43 interface, but the schematic can verify that for you. Pick either
SPI
orSPI1
, the WiFi chip doesn't use a HW SPI interface. Make sure the pins are legal using the above link, you can't just pick any combinations.I don't think HW SPI is any faster. The included
SoftwareSPI
in this core uses PIO hardware to do the work and can go up to 1/4 the CPU clock. Make sure you set the SPI frequency as high as you can support w/the display…