> For the complete documentation index, see [llms.txt](https://ruggedboard.gitbook.io/ruggedboard/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ruggedboard.gitbook.io/ruggedboard/tutorial-using-c/lib-mraa-and-upm-sensor-libraries/example-programs-for-communication-protocols/gpio.md).

# GPIO

Now that we know to run a python program, let us try and write a small GPIO python program.

```
import mraa

print (mraa.getVersion())
x = mraa.Gpio(13)
x.dir(mraa.DIR_OUT)
x.write(1)
```
