Status of software control GPIO

I was looking to access the GPIO header (J21, e.g., pin GPIO.26, ref: https://www.sifive.com/document-file/premier-p550-carrier-board-schematic) on the carrier board from the software using python or c code on Ubuntu. Could you point to any demo or example codes to access GPIOs?

Thanks.

1 Like

Hi Yash,
You can access GPIOs via sysfs entries at /sys/class/gpio. You can explore more about exporting the GPIO here and can get access there.

Thanks.