Skip to content

Version 0.8.0

Compare
Choose a tag to compare
@ddemidov ddemidov released this 03 Nov 17:26

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