This commit is contained in:
Tristan Hearn
2012-08-09 20:41:51 -04:00
parent e4879b1615
commit 010dce72a5

View File

@@ -13,22 +13,22 @@ Method names within the Python Arduino Command API are designed to be as close a
## Usage example
```python
#!/usr/bin/env python
"""
Blinks an LED on digital pin 13
in 1 second intervals
"""
from arduino import Arduino
import time
board = Arduino('9600')
while True:
board.digitalWrite(13, "LOW")
time.sleep(1)
board.digitalWrite(13, "HIGH")
time.sleep(1)
#!/usr/bin/env python
"""
Blinks an LED on digital pin 13
in 1 second intervals
"""
from arduino import Arduino
import time
board = Arduino('9600')
while True:
board.digitalWrite(13, "LOW")
time.sleep(1)
board.digitalWrite(13, "HIGH")
time.sleep(1)
```
Python-Arduino-Command-API
For more examples, see arduino/examples.py. This file contains methods which replicate