Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
python-ev3dev2 (2.0.0~beta3) stable; urgency=medium

* Added MoveDifferential
* Sound: removed play() in favor of play_file()
* suppress unittest ResourceWarning messages
* Added DistanceValue classes
Expand Down
35 changes: 35 additions & 0 deletions docs/other.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,38 @@ Lego Port

.. autoclass:: ev3dev2.port.LegoPort
:members:

Wheels

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In all honesty, I think the other docs page is pretty unweildy. We have so much stuff here that it just becomes difficult to browse. What do you think about breaking from tradition here and giving this its own file, and then we can track an issue for splitting out some of the other classes (like buttons) which are getting pretty big?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's commit the wheels docs here for now and then we can figure out how we want to split this file up afterwards?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed #559 to track this part

------
All Wheel class units are in millimeters. The diameter and width for various lego wheels can be found at http://wheels.sariel.pl/

.. autoclass:: ev3dev2.wheel.Wheel
:members:

EV3 Rim
~~~~~~~

.. autoclass:: ev3dev2.wheel.EV3Rim
:members:
:show-inheritance:

EV3 Tire
~~~~~~~~

.. autoclass:: ev3dev2.wheel.EV3Tire
:members:
:show-inheritance:

EV3 Education Set Rim
~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: ev3dev2.wheel.EV3EducationSetRim
:members:
:show-inheritance:

EV3 Education Set Tire
~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: ev3dev2.wheel.EV3EducationSetTire
:members:
:show-inheritance:
4 changes: 4 additions & 0 deletions ev3dev2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ def __str__(self):
def __repr__(self):
return self.__str__()

# This allows us to sort lists of Device objects
def __lt__(self, other):
return str(self) < str(other)
Comment thread
dwalton76 marked this conversation as resolved.
Resolved

def _attribute_file_open(self, name):
path = os.path.join(self._path, name)
mode = stat.S_IMODE(os.stat(path)[stat.ST_MODE])
Expand Down
Loading