mirror of
https://github.com/thearn/Python-Arduino-Command-API.git
synced 2026-04-24 03:00:20 -04:00
Update README.md
This commit is contained in:
@@ -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**
|
||||
|
||||
Reference in New Issue
Block a user