python-periphery example code.
python-periphery is a python library that can handle GPIO, onboard LED, SPI, i2c and UART.
It is a very versatile library and highly portable.
This library can also be used in the buildroot environment.
The downside is that there is less example python code.
This library is available for these Linux boards.
I used it to check the operation of these Linux boards.
sudo apt update
sudo apt install git python3-pip python3-setuptools
python3 -m pip install python-periphery
git clone https://github.com/nopnop2002/python-periphery-example
Rebuild the kernel with python-periphery enabled.
git clone https://github.com/vsergeev/python-periphery.git