# Welcome to python-periphery’s documentation!

python-periphery is a pure Python library for GPIO, LED, PWM, SPI, I2C, MMIO, and Serial peripheral I/O interface access in userspace Linux. It is useful in embedded Linux environments (including Raspberry Pi, BeagleBone, etc. platforms) for interfacing with external peripherals. python-periphery is compatible with Python 2 and Python 3, is written in pure Python, and is MIT licensed.

## Contents

- GPIO
  - Code Example
  - API
- LED
  - Code Example
  - API
- PWM
  - Code Example
  - API
- SPI
  - Code Example
  - API
- I2C
  - Code Example
  - API
- MMIO
  - Code Example
  - API
- Serial
  - Code Example
  - API
- Version and Helper Functions