Skip to content

Commit c3d8708

Browse files
committed
Update docs to refer to Python3 only
1 parent 211cf96 commit c3d8708

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

README.rst

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ Python language bindings for ev3dev
77
:target: http://python-ev3dev.readthedocs.org/en/latest/?badge=latest
88
:alt: Documentation Status
99

10-
A Python library implementing unified interface for ev3dev_ devices.
10+
A Python3 library implementing unified interface for ev3dev_ devices.
1111

1212
Example Code
1313
------------
1414

15-
To run these minimal examples, run the Python interpreter from
15+
To run these minimal examples, run the Python3 interpreter from
1616
the terminal like this:
1717

1818
.. code-block:: bash
1919
20-
robot@ev3dev:~$ python
21-
Python 2.7.9 (default, Mar 1 2015, 13:52:09)
22-
[GCC 4.9.2] on linux2
20+
robot@ev3dev:~/ev3dev-lang-python$ python3
21+
Python 3.4.2 (default, Oct 8 2014, 14:47:30)
22+
[GCC 4.9.1] on linux
2323
Type "help", "copyright", "credits" or "license" for more information.
2424
>>>
2525
@@ -51,13 +51,13 @@ little program will run the motor at 75% power for 3 seconds.
5151
.. code-block:: python
5252
5353
m = ev3.LargeMotor('outA')
54-
m.run_timed(time_sp=3000, duty_cycle_sp=75)
54+
m.run_timed(time_sp=3000, speed_sp=500)
5555
5656
If you want to make your robot speak, then paste this code into the terminal:
5757

5858
.. code-block:: python
5959
60-
ev3.Sound.speak('Welcome to the EV3DEV project!').wait()
60+
ev3.Sound.speak('Welcome to the E V 3 dev project!').wait()
6161
6262
To quit Python, just type ``exit()`` or ``Ctrl-D``.
6363

@@ -109,20 +109,14 @@ The ev3dev-lang Project on GitHub
109109
Python2.x and Python3.x Compatibility
110110
-------------------------------------
111111

112-
The ev3dev_ distribution comes with both python2_ and python3_ installed and
113-
this library is compatible with both versions.
112+
The ev3dev_ distribution comes with both python2_ and python3_ installed
113+
but this library is compatible only with Python3.
114114

115-
Note that currently, the source is only installed in the default
116-
`Python 2.x`_ location - this will be addressed in the next package we
115+
Note that currently, the Python3 binding for ev3dev_ is not installed
116+
by default - this will be addressed in the next package we
117117
release.
118118

119-
For `Python 2.x`_ programs, you import the binding like this:
120-
121-
.. code-block:: python
122-
123-
from ev3dev.auto import *
124-
125-
For `Python 3.x`_ the easiest way to work around the problem is
119+
The easiest way to work around the problem is
126120
to get your EV3 connected to the Internet and then:
127121

128122
#. Update the package lists

0 commit comments

Comments
 (0)