Fix the problem of using the SD card with the screen at the same time #1082
Replies: 2 comments 6 replies
-
Yes, you can change the port used by the ILI9341 display driver. But, generally it is better to keep it on HSPI because HSPI can run faster than VSPI. Instead, could you move the SD Card from HSPI to VSPI? You could even provide a manifest option to configure that, like the ILI9341 driver does. |
Beta Was this translation helpful? Give feedback.
-
i was following the example from
i can see the first file at my c is quite rusty, am i missing some compiler include during the compilation by the moddable sdk really im looking to use spi devices with the moddalbe sdk, but i cant find some examples to get me going |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
I ran into a problem with the SPI port when I wanted to use the display and the SD card at the same time, after searching the internet I couldn't find anything until I remembered to go to the display settings in my project manifest. I changed the SPI port from ILI9341 definitions to VSPI_HOST.
And yes, it worked. You can now view the help document I just updated :
https://github.com/salarizadi/moddable-sdk/blob/main/Modules/SD/README.md#notes
Beta Was this translation helpful? Give feedback.
All reactions