Compare commits
7 commits
main
...
tymek-test
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
72c23301ef | ||
|
|
8a98383835 | ||
|
|
bca6fddc0c | ||
|
|
6051d2e32e | ||
|
|
1591464300 | ||
|
|
0b200da5f7 | ||
|
|
95cebe9f74 |
11
sample.py
11
sample.py
|
|
@ -3,11 +3,16 @@ import time
|
|||
|
||||
motorA = Motor('A')
|
||||
motorB = Motor('B')
|
||||
motorA.set_default_speed(25)
|
||||
motorB.set_default_speed(25)
|
||||
|
||||
motorA.start(50)
|
||||
motorB.start(50)
|
||||
czas=int(input("czas działania: "))
|
||||
|
||||
time.sleep(4)
|
||||
motorA.start()
|
||||
motorB.start()
|
||||
time.sleep(czas)
|
||||
|
||||
motorA.stop()
|
||||
motorB.stop()
|
||||
|
||||
# silniki 25-100
|
||||
|
|
|
|||
Loading…
Reference in a new issue