mirror of
https://github.com/thearn/Python-Arduino-Command-API.git
synced 2026-04-24 03:00:20 -04:00
Update README.md
example didnt set the pinmode for pin 13 before attempting to write values to it
This commit is contained in:
@@ -24,6 +24,7 @@ from Arduino import Arduino
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
board = Arduino('9600') #plugged in via USB, serial com at rate 9600
|
board = Arduino('9600') #plugged in via USB, serial com at rate 9600
|
||||||
|
board.pinMode(13, "OUTPUT")
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
board.digitalWrite(13, "LOW")
|
board.digitalWrite(13, "LOW")
|
||||||
|
|||||||
Reference in New Issue
Block a user