This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
import RPi.GPIO as GPIO | |
GPIO.setmode(GPIO.BCM) | |
GPIO.cleanup() | |
GPIO.setwarnings(False) | |
#configure your GPIO pins | |
team1 = 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |