Skip to content

Instantly share code, notes, and snippets.

Kris Sum kris-sum

View GitHub Profile
@kris-sum
kris-sum / Joypadio.py
Created Jan 18, 2015
A very early alpha of the voting system code
View Joypadio.py
import os
import RPi.GPIO as GPIO
class Joypadio:
'hardware I/O class for joypad voting system'
#choose your GPIO pins here
GPIOteamA = 16
GPIOteamB = 20
@kris-sum
kris-sum / test.py
Created Jan 18, 2015
Testing two button input on raspberry pi
View test.py
import os
import time
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.cleanup()
GPIO.setwarnings(False)
#configure your GPIO pins
team1 = 16
You can’t perform that action at this time.