Hardware Setup

To setup hardware, connect buttons pin ① and pin ② to the breadboard first, and then connect pin ③ and pin ④ to VisionFive 2. The following table and figure describe how to connect button to the 40-pin GPIO Header:
Table 1. Connect button to the 40-Pin Header
Button 40-Pin GPIO Header
Pin Number Pin Name
Pin ④ 37 GPIO60
Pin ③ 39 GND
Figure 1. Connect the button to the 40-Pin Header
Tip: Inside the button, the pins ① and ③ are connected while the pins ② and ④ are connected.