Hot Wheels Technology has developed a rk3588s motherboard youyeetoo R1, which provides 40pin expansion pins, including 1 pwm pin. The pin distribution is shown in the figure below:
If you want to use shell commands in the Android system, you need to enter the Android command line window through ADB. For tutorials on using ADB, please refer to the adb debugging chapter. After opening the Android system command line through adb, you need to export the pwm device to user space first to operate the pwm pins.
su
cd /sys/class/pwm/pwmchip0/
echo 0 > export
echo 10000 > period
echo 5000 > duty_cycle
echo 1 > enable