This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
servoclass-py [2015/04/30 08:41] zoza |
servoclass-py [2015/04/30 08:42] zoza |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== servoclass.py ====== | ====== servoclass.py ====== | ||
- | external functions for different LED behaviours | + | external functions for motors control |
<code python> | <code python> | ||
#!/usr/bin/env python | #!/usr/bin/env python | ||
Line 18: | Line 18: | ||
### set up serial baud rate | ### set up serial baud rate | ||
sermotor = serial.Serial(portmotor, 9600, timeout=1) | sermotor = serial.Serial(portmotor, 9600, timeout=1) | ||
- | # serled = serial.Serial(portled, 9600, timeout=1) | ||
class Servo: | class Servo: |