Running Demo Codes
To run the demo code, perform the following on VisionFive 2 Debian:
- Locate to the directory where the test code, edge_detection_with_LED_Matrix.py, exists:
- Under the sample-code directory, execute the following command to execute the demo code:
ssudo python edge_detection_with_LED_Matrix.py
Alternatively, you can execute the following command:
sudo python3 edge_detection_with_LED_Matrix.py
Result:- The terminal displays as follows:
# python3 edge_detection_with_LED_Matrix.py *------------------------------------------------------* Please press the key on pin 37 to launch !!!
- After pressing the button according to the prompt, the LED matrix module will countdown from 5 to 1, and finally display the StarFive logo, as shown in the following figure:
Figure 1. Countdown and StarFive Logo
- The terminal displays as follows: