# Peripheral I/O

> Peripheral I/O allows to communicate with sensors and actuators using industry standard protocols and interfaces.

* General Purpose Input/Output (GPIO)
* Pulse Width Modulation (PWM)
* Serial Communication
  * I2C
  * SPI
  * UART

Links

* [Raspberry Pi Pinout](https://pinout.xyz/)
* [Android Things Raspberry Pi I/O](https://developer.android.com/things/hardware/raspberrypi-io.html)

## Pin Muxing

> Many modern microcontroller have a cool feature: Pin Muxing. What it means is that I can ‘mux’ the pins for different purposes: such as I can use a SPI or I2C pin as GPIO (General Purpose Pin) or vice versa. In an ideal world, I would be able to ‘route’ or ‘mux’ pins freely around. In practice these ‘way switches’ are more or less limited. [Reference](https://mcuoneclipse.com/2014/04/18/pin-muxing-using-the-nmi-pin-as-gpio-pin/)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://theiotlearninginitiative.gitbook.io/raspberrypi/embedded-linux/subsystem/peripheral-io.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
