From 21cd043dbb47d20e5703170d42f2dffa6d17a133 Mon Sep 17 00:00:00 2001 From: Vinothan Shankar Date: Tue, 6 Jan 2015 14:20:05 +0000 Subject: [PATCH] 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. --- tobabp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 tobabp.py diff --git a/tobabp.py b/tobabp.py old mode 100644 new mode 100755 index cf53bc6..b6d47dc --- a/tobabp.py +++ b/tobabp.py @@ -28,8 +28,8 @@ PORT = '6600' CON_ID = {'host':HOST, 'port':PORT} # Configure IO ports -BUTTON = 17 -LED = 24 +BUTTON = 24 +LED = 17 GPIO.setmode(GPIO.BCM) GPIO.setup(BUTTON, GPIO.IN) GPIO.setup(LED, GPIO.OUT)