Skip to content

Commit eb7e787

Browse files
authored
Test dc motor
Test dc motor
1 parent 8c14d03 commit eb7e787

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
11
import cyberpi, mbot2
2+
from time import sleep
3+
4+
cyberpi.display.show_label("mBot2 DC Motor ",16,0,0,0)
5+
6+
mbot2.motor_set(100,"all")
7+
sleep(1)
8+
mbot2.motor_set(0,"all")

0 commit comments

Comments
 (0)