Python-ev3dev

Latest version: v1.2.0

Safety actively analyzes 682404 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.0.0

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.

* Add constants for color values to color sensor class
* Update documentation on motors
* Add getters to check state of motors
* Implement BeaconSeeker class
* Fix scaling of floating-point values from sensors
* Add Sound.play_song method
* Make sound commands cancelable
* Add tuples for sensor modes
* Add wait_until_not_moving for motors

0.8.1

A minor release that mostly catches up to the changes in the latest kernel ([18-ev3dev](http://www.ev3dev.org/news/2017/01/25/kernel-release-cycle-18/)):
- Fix inverted button logic for the latest kernel.
- Check for non-existing device attributes. This patch adds `__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.
- Provide `Sound.set_volume(pct)` and implement `Sound.get_volume()`.
- Add a function to list all the connected sensors.
- Use speed instead of duty cycle in `EXPLOR3R/auto-drive.py`.
- Update `utils` to python3.
- Clean up MINDCUB3R demo.
- Documentation updates.

0.8.0

This is a fairly minor release in terms of feature additions, but it includes a large breaking change (and one small one).
- Add option to not set mode before reading sensor value on "special" sensors
- Return a tuple for multiple values from a sensor property
- Add ColorSensor.raw() method to get all color channels at once
- Merge NXTMotor functionality into LargeMotor class and remove NXTMotor (**breaking change**)
- Distribute fonts from xfonts-75dpi in PIL format and expose them in
code
- Replace special sensor methods with properties for the sake of consistency
(**breaking change**)
- Provide waiting functions for motors
- Make implementation of Led timer-based trigger more robust

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).

0.7.0

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:
- Support for `-13-ev3dev` and newer kernels
- New base classes for common types of robots
- Fixes for BrickPi support
- Performance improvements

You can see a list of all the changes that have been made in [the changelog](https://github.com/rhempel/ev3dev-lang-python/blob/0.7.0/debian/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.

0.6.0

There are a few changes worth noting in this release:
- The `port_name` attribute is now called `address`
- LEDs on the BrickPi are renamed from `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](http://www.ev3dev.org/news/2015/12/15/Kernel-Release-Cycle-9/)

0.5.0

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 kernel
- `Button` 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](http://www.ev3dev.org/news/2015/11/09/Kernel-Release-Cycle-8/)

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.