Skip to content
This repository was archived by the owner on Nov 23, 2019. It is now read-only.

Commit e8ef543

Browse files
committed
New readme
1 parent 5534818 commit e8ef543

File tree

2 files changed

+32
-11
lines changed

2 files changed

+32
-11
lines changed

README.md

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,39 @@ python-ev3
33

44
Program Lego Mindstorms EV3 using Python on ev3dev
55

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)
11+
12+
## Install the python-ev3 on EV3
13+
Install python-ev3 under a virtual env
14+
* ```apt-get install virtualenv virtualenvwrapper python-setuptools python-smbus```
15+
* ```mkvirtualenv ev3```
16+
* ```add2virtualenv /usr/lib/python2.7/dist-packages```
17+
* ```easy_install python-ev3```
18+
19+
## Example
20+
```python
21+
(ev3)root@ev3dev:~# python
22+
Python 2.7.8 (default, Jul 4 2014, 16:59:40)
23+
[GCC 4.9.0] on linux2
24+
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)
1537

1638

1739
## Reference
1840
* ev3 opensource project: https://github.com/mindboards/ev3sources
1941
* ev3-dev: https://github.com/mindboards/ev3dev
20-

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
author_email='[email protected]',
1111
url='https://github.com/topikachu/python-ev3',
1212
packages=['ev3'],
13-
download_url="https://github.com/topikachu/python-ev3/releases/download/0.01/python_ev3-0.0.1-py2.7.egg"
13+
download_url="https://github.com/topikachu/python-ev3/releases/download/0.0.1/python_ev3-0.0.1-py2.7.egg"
1414
)

0 commit comments

Comments
 (0)