Pure python bindings for ev3dev
This is the first release for the v2.x series of ev3dev-lang-python, designed specifically for the upcoming ev3dev version ev3dev-stretch. To learn more about new features and find out how to upgrade, see our upgrading guide: https://python-ev3dev.readthedocs.io/en/ev3dev-stretch/upgrading-to-stretch.html
This isn't a huge release, but it marks the official "v1" of the library to correspond with ev3dev-jessie. In this release, the headline updates are proper handling of floating-point numbers with some sensors and methods for interacting with motor state. You can see the full list below.
A minor release that mostly catches up to the changes in the latest kernel (18-ev3dev):
__slots__
attribute to all API classes that use setattr
magic and kwargs
for function parameters. Besides reducing memory and speeding up access, the main point of this change is that a typo when calling a function will result in an error, rather than silently setting non-existing properties.Sound.set_volume(pct)
and implement Sound.get_volume()
.EXPLOR3R/auto-drive.py
.utils
to python3.This is a fairly minor release in terms of feature additions, but it includes a large breaking change (and one small one).
Starting with this release, you will now access sensor values on sensor classes such as TouchSensor
as Python properties instead of as methods. This means that you would replace sensor.is_pressed()
with sensor.is_pressed
(note the lack of parenthesis).
This release brings with it a bunch of bug fixes as well as major interface changes to the motor API to become compatible with the newest ev3dev versions.
The release highlights include:
-13-ev3dev
and newer kernelsYou can see a list of all the changes that have been made in the changelog. Note that this release includes changes from both the v0.7.0~rc1
release and the current 0.7.0
release as listed in the changelog.
There are a few changes worth noting in this release:
port_name
attribute is now called address
brickpi{1,2}:blue:ev3dev
to brickpi:led{1,2}:blue:ev3dev
This release of the pure Python binding requires the latest ev3dev
kernel - see the announcement for Kernel Release Cycle 9 here
There are a few changes worth noting in this release:
Sound
API now accepts single tones as well as lists of tones for backwards compatibility.LED
API now supports new LED names from the new kernelButton
API now has any()
as a function, not a property.This release of the pure Python binding requires the latest ev3dev
kernel - see the announcement for Kernel Release Cycle 8 here
Initial release of a stable API for accessing ev3 peripherals such as motors, sensors, buttons, LEDs, the speaker and the screen.