From f2c9de7eb6a3a6f71405e65b710c93c4979caa40 Mon Sep 17 00:00:00 2001 From: Jules Gantenbein Date: Wed, 22 Oct 2014 22:22:32 +1100 Subject: [PATCH] Update examples.py changed line 11 board.pinMode(13, "OUTPUT") to board.pinMode(led_pin, "OUTPUT") as if led_pin is anything other than 13 the example wont work --- examples.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples.py b/examples.py index 5a2e143..21c6e0f 100644 --- a/examples.py +++ b/examples.py @@ -8,7 +8,7 @@ def Blink(led_pin, baud, port=""): Blinks an LED in 1 sec intervals """ board = Arduino(baud, port=port) - board.pinMode(13, "OUTPUT") + board.pinMode(led_pin, "OUTPUT") while True: board.digitalWrite(led_pin, "LOW") print board.digitalRead(led_pin) # confirm LOW (0)