https://github.com/nopnop2002/python-periphery-example
python-periphery example code
https://github.com/nopnop2002/python-periphery-example
buildroot gpio i2c luckfox-pico milk-v-duo pwm python-library spi uart
Last synced: 6 months ago
JSON representation
python-periphery example code
- Host: GitHub
- URL: https://github.com/nopnop2002/python-periphery-example
- Owner: nopnop2002
- License: mit
- Created: 2024-05-01T05:45:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-22T22:50:17.000Z (9 months ago)
- Last Synced: 2025-04-22T23:35:34.602Z (9 months ago)
- Topics: buildroot, gpio, i2c, luckfox-pico, milk-v-duo, pwm, python-library, spi, uart
- Language: Python
- Homepage:
- Size: 45.9 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.


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

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

I used it to check the operation of these Linux boards.
# Installing on Debian/Ubuntu environment
```Shell
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
```
# Installing on buildroot environment
Rebuild the kernel with python-periphery enabled.

# Get source code
```
git clone https://github.com/vsergeev/python-periphery.git
```