Update README.md

This commit is contained in:
Tristan Hearn
2013-04-19 16:54:01 -03:00
parent d12994501e
commit 9b691e80a0

View File

@@ -122,13 +122,9 @@ Support is included for up to 8 servos.
```python
#Servo example
board.Servo.attach(9) #declare servo on pin 9
board.Servo.attach(10) #declare servo on pin 10
board.Servo.write(9, 0) #move servo on pin 9 to 0 degrees
board.Servo.write(10, 180) #move servo on pin 10 to 180 degrees
angle_1 = board.Servo.read(9) # should be 0
angle_2 = board.Servo.read(10) # should be 180
print board.Servo.read(9) # should be 0
board.Servo.detach(9) #free pin 9
board.Servo.detach(10) #free pin 10
```
**Software Serial Functionality**