Page 1 of 1

[SPI-Configuration] Luckfox Pico Ultra W

Posted: 2025-04-22 2:11
by znguyen
Hello everyone,
I have a project which used a Luckfox Pico Ultra W board and touch LCD (LF40-480480-ARK).
Now I want to add an interface with SPI module (RF module) via SPI interface.
But its seem SPI pins used for LCD
SPI2_MOSI: GPIO1_C0
SPI2_MISO: GPIO1_C1
SPI2_CLK: GPIO1_C2
SPI2_CS0: GPIO1_C3
So, please help to advice remap SPI pins in this case?
If use a soft SPI or I2C, Does LuckFox SDK support this?
Thank you

Re: [SPI-Configuration] Luckfox Pico Ultra W

Posted: 2025-04-22 7:58
by Crocodile
Hello, if there is a need for RGB, then the Luckfox Pico Ultra does not have a redundant SPI controller interface, but the linux kernel has a driver that supports emulating the GPIO to SPI, you need to set CONFIG_SPI_GPIO=y in the kernel, and the device tree is configured according to the actual situation

Re: [SPI-Configuration] Luckfox Pico Ultra W

Posted: 2025-04-22 9:27
by znguyen
Hello Crocodile
Thanks for your feedback.
Could you please let me know that will have option to config for soft I2C ?
Thank you.

Re: [SPI-Configuration] Luckfox Pico Ultra W

Posted: 2025-04-23 2:31
by Crocodile
Similar to software SPI, you can enable CONFIG_I2C_GPIO and modify the device tree

Re: [SPI-Configuration] Luckfox Pico Ultra W

Posted: 2025-04-26 3:26
by znguyen
Hello Crocodile
Yes, Its OK.
Thanks for your recommendation.