Short python program to change voltages in rpi gpio pins.

First I installed python:

sudo apt-get install python-pip

and then a library for gpio:

sudo pip install rpi.gpio

Once that was done, the following python script sets a high and low voltage to physical pin 11. Note: the physical pin 11 corresponds to GPIO 17. The physical pin 6 corresponds to Ground. For additional details and diagrams refer to: http://elinux.org/RPi_Low-level_peripherals.