Raspberry Pico and MHS 4001 #2255
Replies: 4 comments 1 reply
-
In the readme I red the MHS-dislpay is a good starting point... Seems so, not with the pico. The ino-file looks like
|
Beta Was this translation helpful? Give feedback.
-
The display is designed for the Raspberry Pi and thus has a custom interface design. To select the correct interface type you must add this line to the setup file: #define RPI_DISPLAY_TYPE |
Beta Was this translation helpful? Give feedback.
-
Great, that solved the problem. |
Beta Was this translation helpful? Give feedback.
-
That particular display is very unusual in that it can be clocked at 125MHz. The best performance (on the RP2040) without overclocking will be with a CPU freuency set to 125MHz and the SPI clock rate set to 62.5MHz: #define SPI_FREQUENCY 62500000 With Earle Philhower's board package you can change the CPU speed (aka frequency) in the Arduino IDE "Tools" menu. At the default core package CPU speed of 133MHz and above the maximum SPI clock rate drops to 24MHz for the reasons I detailed here: earlephilhower/arduino-pico#415 Note that if you over-clock the processor to 250MHz and include the clock switch code (in above link) at the start of setup(), you can then specifiy a maximum SPI frequency of half the CPU speed, in this case 125MHz: #define SPI_FREQUENCY 125000000 This then gives a very good display update speed (circa 45fps for clear screen which is the highest of any 320x480 SPI interface display I have tested), so this is why it is a recommended display. At some point I will add PIO support for that particular display type to improve the rendering performance further. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm completely lost. I try to get the MHS4001 to work with my pico.
[http://www.lcdwiki.com/File:MHS4001-02.jpg]
The Setup file is
Upload works, I get messages on the serial console but the TFT stays white. No Text, no black background.
What do I miss?
Beta Was this translation helpful? Give feedback.
All reactions