You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 23, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+31-10Lines changed: 31 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,18 +3,39 @@ python-ev3
3
3
4
4
Program Lego Mindstorms EV3 using Python on ev3dev
5
5
6
-
## What you need:
7
-
8
-
You need to run the ev3dev (https://github.com/mindboards/ev3dev) on your ev3 and have a ssh session.
9
-
Please reference the ev3dev wiki (https://github.com/mindboards/ev3dev/wiki/Getting-started-v2) to burn such system.
10
-
Current python-ev3 is developed on ev3dev-jessie-2014-07-12 (https://github.com/mindboards/ev3dev/releases/tag/ev3dev-jessie-2014-07-12)
11
-
12
-
## Install the python-ev3
13
-
14
-
6
+
## What you need
7
+
8
+
9
+
You need a working [ev3dev](https://github.com/mindboards/ev3dev) on your ev3 and have a ssh session. Please reference the [ev3dev wiki](https://github.com/mindboards/ev3dev/wiki/Getting-started-v2) to burn such system.
10
+
Current python-ev3 is developed on [ev3dev-jessie-2014-07-12](https://github.com/mindboards/ev3dev/releases/tag/ev3dev-jessie-2014-07-12)
Type "help", "copyright", "credits"or"license"for more information.
25
+
>>>from ev3.lego import MidiumMotor
26
+
>>> d = MidiumMotor()
27
+
>>> d.reset()
28
+
>>> d.run_forever(50, regulation_mode=False)
29
+
>>> d.stop()
30
+
>>>exit()
31
+
```
32
+
To exit the virtual env, type```deactivate```
33
+
34
+
## More devices
35
+
Plese see ```test``` to know how to use other devices.
36
+
To create new sensor class please see [How to create a new sensor class ](https://github.com/topikachu/python-ev3/wiki/How-to-create-a-new-sensor-class)
0 commit comments