GPIO Introduction
Let's take a detailed look at the Walnut Pi's GPIO, i.e., its 40-pin GPIO header (similar to Raspberry Pi). The Walnut Pi is already a great single-board computer, but the GPIO design makes it easier for users to perform various DIY electronic projects, giving you an experience similar to using a powerful microcontroller development board.
GPIO Command Operations
We provide a set of commands for quickly operating GPIO from the command line. This guide mainly introduces how to use these commands.
Switch GPIO Function
Some pins carry functions such as I2C, UART, SPI, etc. You need to use the set-device command to enable the configuration before you can use Python or C for embedded programming applications.
PWM
This guide mainly introduces how to use the onboard hardware PWM functionality, based on the general Linux PWM operation method.