Introduction

This application note provides steps to use VisionFive 2's GPIO pins to verify GPIO Pull Up and Pull Down(PUD) function.

Tip: VisonFive.gpio is compatible with the RPi.GPIO command, which means that the RPi.GPIO python demo can be run on VisionFive 2. In addition, the callback function of API add_event_detect() has been optimized compared to RPi.GPIO, which adds a edge_type parameter in callback function. Therefore, the python demo of RPi.GPIO related to callback functions needs to be modified manually by adding edge_type parameter.