Skip to content

nopnop2002/python-periphery-example

Repository files navigation

python-periphery-example

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.

  • LuckFox Pico board using Rockchip RV1103/RV1106 chips.
    luckfox-pico-1 luckfox-pico-2

  • Milk-V Duo 64M board using CVITEK CV1800B chips.
    Milk-V_Duo_64M

  • Milk-V Dio 256M board using Microsemi Corporation SG2002 chips.
    Milk-V_Duo_256M

I used it to check the operation of these Linux boards.

Installing on Debian/Ubuntu environment

sudo apt update
sudo apt install git python3-pip python3-setuptools
python3 -m pip install python-periphery

Installing on buildroot environment

Rebuild the kernel with python-periphery enabled.
python-periphery

Get source code

git clone https://github.com/vsergeev/python-periphery.git