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:
parent
641f47d8de
commit
21cd043dbb
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue