Page 1
Using VisionFive 2 GPIO to Make An LED Blink with Python Application Note Version: 1.0 Date: 2022/11/30 Doc ID: VisionFive2-ANEN-002...
Page 2
StarFive does not assume any liability rising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation indirect, incidental, special, exemplary, or consequential damages.
Page 3
Preface About this guide and technical support information. About this document This application note provides steps to use VisionFive 2's GPIO pins to make an LED blink. Revision History Table 0-1 Revision History Version Released Revision 2022/11/30 The first official release.
1. Introduction This application note provides steps to use VisionFive 2's GPIO pins to make an LED blink. 1.1. 40-Pin Header Definition The following figure shows the location of the 40-pin header on VisionFive 2. Figure 1-1 40-Pin Definition 5V Power 3.3V Power...
Prepare the following hardware items before running the demo code: Table 2-1 Hardware Preparation Type Item Notes General VisionFive 2 single board computer General These items are used for flashing Debian OS into • 32 GB (or more) micro-SD card a micro-SD card. • micro-SD card reader •...
Guide. 2. Log into the Debian and make sure VisionFive 2 is connected to the Internet. For detailed instructions, refer to the Using SSH over Ethernet or Using a USB to Serial Converter section in the VisionFive 2 Single Board Computer Quick Start Guide.
3. Running Demo Code To run the demo code, perform the following on VisionFive 2 Debian: 1. Locate to the directory where the code, led.py, 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...
Need help?
Do you have a question about the VisionFive 2 and is the answer not in the manual?
Questions and answers