From 464f39cbdb0b08dc1974d6d75a0b5b7d10f19db2 Mon Sep 17 00:00:00 2001 From: Ian Date: Thu, 2 Jan 2014 22:53:56 -0600 Subject: [PATCH] Update examples.py The pin mode for the blink method was off. Took out the port configuration in the main because the library can usually find it on it's own, and was causing issues when I was manually specifying. Currently using for a project, so I'm sure I'll have more commits for you eventually. --- examples.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples.py b/examples.py index ef27891..5a2e143 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, "INPUT") + board.pinMode(13, "OUTPUT") while True: board.digitalWrite(led_pin, "LOW") print board.digitalRead(led_pin) # confirm LOW (0) @@ -73,4 +73,4 @@ def LCD(tx, baud, ssbaud, message, port=""): board.SoftwareSerial.write(" test ") if __name__ == "__main__": - Blink(13, '9600', port="/dev/tty.usbserial-A700e08i") + Blink(13, '9600')