When implementing a certain input and output that requires GPIO, we found relatively few GPIOs available on the 40-pin or 16-pin connector. To this end, we removed the pins' original functions and enabled GPIO control. In this way, any pins that are not required can be fully utilized to expand more GPIOs.
The available GPIOs can be seen in the Docs link.40pin-header
In the Settings→Device Preferences→Pin Multiple, there is an option called Pin multiple.
Among the limited available pins, we can set the SPDIF, UART, and 12S groups as GPIOs so they can be used when not in use.
The available GPIOs can be seen in the Docs link.40pin-header
In the Khadas settings→Pin Multiple, there is an option called Pin multiple.
Among the limited available pins, we can set the UART as GPIOs so they can be used when not in use.
The available GPIOs can be seen in the Docs link.40pin-header
In the Khadas settings→Pin Multiple, there is an option called Pin multiple.
Among the limited available pins, we can set the SPDIF, UART, PWM_F, and 12S groups as GPIOs so they can be used when not in use.
The available GPIOs can be seen in the Docs link.16pin-header
In the Khadas settings→Pin Multiple, there is an option called Pin multiple.
Among the limited available pins, we can set the SPI as GPIOs so they can be used when not in use.
By default, we have enabled the original function of the corresponding pin. When you need to use it as GPIO, you can turn off its function in the interface, and then restart the device to use the GPIO function of the corresponding pin.