Make IO numbers agree with schematic

The blog notes that they're opposite ways round in the schematic and the
file; this fixes the inconsistency by editing the file.
This commit is contained in:
Vinothan Shankar 2015-01-06 14:20:05 +00:00
parent 641f47d8de
commit 21cd043dbb
1 changed files with 2 additions and 2 deletions

4
tobabp.py Normal file → Executable file
View File

@ -28,8 +28,8 @@ PORT = '6600'
CON_ID = {'host':HOST, 'port':PORT} CON_ID = {'host':HOST, 'port':PORT}
# Configure IO ports # Configure IO ports
BUTTON = 17 BUTTON = 24
LED = 24 LED = 17
GPIO.setmode(GPIO.BCM) GPIO.setmode(GPIO.BCM)
GPIO.setup(BUTTON, GPIO.IN) GPIO.setup(BUTTON, GPIO.IN)
GPIO.setup(LED, GPIO.OUT) GPIO.setup(LED, GPIO.OUT)