Running Demo Code - StarFive VisionFive SPI User Manual

Table of Contents

Advertisement

3. Running Demo Code

To run the demo code, perform the following on VisionFive Fedora:
1. Locate to the directory where the test code, 2.4inch_LCD_demo, exists:
a. Execute the following command to get the directory where VisionFive.gpio
exists:
pip show VisionFive.gpio
Example Result:
Location: /usr/local/lib64/python3.9/site-packages
Note:
The actual output depends on how the application is installed.
b. Execute the following to enter the directory, for example, /usr/local/lib64/
python3.9/site-packages as indicated in the previous step output:
cd /usr/local/lib64/python3.9/site-packages
c. Execute the following command to enter the sample-code directory:
cd ./VisionFive/sample-code/
d. Execute the following command to enter the directory where the test code,
2.4inch_LCD_demo, exists:
cd ./lcddemo/example/
2. Under the sample-code directory, execute the following command to execute the
demo code:
sudo python 2.4inch_LCD_demo
Alternatively, you can execute the following command:
sudo python3 2.4inch_LCD_demo
Result:
www.starfivetech.com
© 2018-2022 上海赛昉科技有限公司
版权所有
12

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VisionFive SPI and is the answer not in the manual?

Table of Contents