Running Demo Code
To run the demo code, perform the following on VisionFive 2 Debian:
-
Locate to the directory where the test code, pwm_led.py,
exists:
-
Under the sample-code directory, execute the following command to
execute the demo code:
sudo python pwm_led.py
Alternatively, you can execute the following command:
sudo python3 pwm_led.py
Result:The LED blinks and the blink frequency will change according to the PWM frequency.