Running Demo Codes
To run the demo code, perform the following on VisionFive 2 Debian:
- Locate to the directory where the test code, basic_edge_detection.py, exists:
- Under the sample-code directory, execute the following command to execute the demo code:
sudo python basic_edge_detection.py
Alternatively, you can execute the following command:
sudo python3 basic_edge_detection.py
Result:- The terminal displays as follows:
# python3 basic_edge_detection.py *-----------------------Case 1-------------------------* Please press the key on pin 37 once at any time !!!
- Press the button, and the terminal displays as follows:
*-----------------------------------* Falling edge is detected on pin 37 ! *-----------------------------------* Rising edge is detected on pin 37 !
- The terminal displays as follows: