RasPiO® Breakout Python scripts
By Alex Eames http://RasPi.TV
These scripts go with the RasPiO® Breakout board http://rasp.io/breakout
Connect a wire from each port to an LED (long leg, +ve side). Connect the short leg of the LED to a resistor (~330 Ohms is safe) Connect the other end of the resistor to GND.
Do this for each port with a GPIO number (17 altogether). Then you are ready to test the ports. You should have 17 leds connected to GPIO ports and resistors.
Run each script by typing
sudo python scriptname.py
With these scripts you should be able to...
- port-test.py - up and down pattern, increasing speed
- port-test-pwm1.py - brighten and dim the leds in succession
- port-test-pwm2.py - brighten and dim alternate sides
- port-test-pwm3.py - brighten and dim alternate groups of leds
Have fun connecting things to your Raspberry Pi