Most Single Board Computers have a set of General Purpose I/O (GPIO) pins that can be used to control homemade electronics projects. In this chapter, GPIO ports on a Starfive Visionfive 2 are looked at. Also, programming GPIO pins from Assembly Language will be shown.
An experiment with a breadboard containing several LEDs and resistors is given, so some real code can be written. The GPIO pins will be programmed in two ways: first of all, by using the Linux device driver and secondly, ...