@@ -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
1212Example 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
1616the 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
@@ -46,18 +46,18 @@ loop and start the program. Hit ``Ctrl-C`` to exit the loop.
4646 ev3.Leds.set_color(ev3.Leds.LEFT , (ev3.Leds.GREEN , ev3.Leds.RED )[ts.value()])
4747
4848 Now plug a motor into the ``A `` port and paste this code into the terminal. This
49- little program will run the motor at 75% power for 3 seconds.
49+ little program will run the motor at 500 RPM for 3 seconds.
5050
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
109109Python2.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
117117release.
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
126120to get your EV3 connected to the Internet and then:
127121
128122#. Update the package lists
0 commit comments