Laurens Valk
ffb2f8aa96
pybricks.pupdevices.UltrasonicSensor: Move cleanup example.
...
Also generalize the example so that it can be used on all hubs.
2022-01-07 13:38:07 +01:00
Pavel Lobodinský and laurensvalk
65c81834c9
pybricks.hubs.PrimeHub: Added a cleanup example.
2022-01-07 13:38:07 +01:00
Pavel Lobodinský and David Lechner
97002948d1
pybricks.common: Refactored Speaker API to be hub specific.
...
The Prime/Inventor Hub Speaker allows only a subset of EV3 Speaker API. Hence, splitting the API up.
2022-01-05 12:10:11 -06:00
Pavel Lobodinský and laurensvalk
70aa5ee0e2
pybricks._common: Renamed incorrect argument name, fixed tuple type.
2022-01-03 11:01:33 +01:00
Pavel Lobodinský and laurensvalk
efc1650e7f
pybricks.parameters: Added Icon class, added missing methods and attributes.
...
Added missing Icon class present in the firmware
2022-01-03 11:01:33 +01:00
Pavel Lobodinský and laurensvalk
fe60636072
pybricks.geometry: Fixed Matrix incorrect rows type, added missing methods.
2022-01-03 11:01:33 +01:00
Pavel Lobodinský and laurensvalk
a1342f77c9
pybricks.hubs: Default values for the PrimeHub.
2022-01-03 11:01:33 +01:00
Laurens Valk
d806fe9fbe
pybricks.common.Control: Fix docstring and type hints for limits().
...
Fixes https://github.com/pybricks/support/issues/565
2021-12-30 09:12:27 +01:00
David Lechner
1259d5d33a
bump version for development
2021-12-16 15:36:52 -06:00
David Lechner
098b8eb9cb
v3.1.0
2021-12-16 15:36:14 -06:00
David Lechner
c666009511
pybricks.geometry: add Axis.ANY
...
This exists in the firmware but was missing here.
2021-12-16 15:08:50 -06:00
David Lechner
7f4234fc1e
pybricks._common: remove type hint for integral_range()
...
This was removed in e061617 .
Also fix import of Axis while we are touching this file.
2021-12-16 15:07:33 -06:00
David Lechner
482289c384
pybricks.robotics: add type hint for curve()
...
This method was added in 30803fc .
2021-12-16 15:06:00 -06:00
Laurens Valk
30803fc017
pybricks.robotics.DriveBase: Add curve method.
...
This generalizes motion to curves (arcs), which is in
between straight lines and in-place turns.
2021-12-01 15:38:27 +01:00
Laurens Valk
749eceefc4
pybricks.robotics.DriveBase: Document then and wait arguments.
2021-12-01 15:35:37 +01:00
Laurens Valk
57f6f0fbef
pybricks.pupdevices.DCMotor: Document settings method.
...
Also update changelog for recent changes.
2021-12-01 14:55:34 +01:00
Laurens Valk
e061617c34
pybricks.common.Control: Drop integral_range.
...
This setting is no longer used. We leave a placeholder setting so we don't break existing programs.
See https://github.com/pybricks/pybricks-micropython/commit/e82dd6a2be4e378ab0b1ee7e3b2643fe654de4a9#diff-e529f43c94cf766ade4b68930f9713a45b62618f4305e4c0c88ba872e9f9cd0e
2021-12-01 14:54:21 +01:00
Laurens Valk
eb09ecd7c7
pybricks.common.Control: Drop duty limit.
...
This is now a per-motor voltage limit.
See https://github.com/pybricks/support/issues/536
2021-12-01 14:41:09 +01:00
Laurens Valk
06a1542613
pybricks.pupdevices.DCMotor: Document settings method.
...
See https://github.com/pybricks/support/issues/536
2021-12-01 14:40:06 +01:00
Laurens Valk
82a8f2ae89
pybricks.pupdevices.Motor: Add small motor render.
...
Fixes https://github.com/pybricks/support/issues/441
2021-11-23 08:59:44 +01:00
Laurens Valk
7d0fe9cb85
doc/common/extensions: Fix classlink.
...
Allow the link to be different from the name.
This lets us fix the link for the Inventor Hub, which was linking to a non-existent page.
2021-11-22 14:49:20 +01:00
Laurens Valk
1af876ac8f
pybricks.pupdevices.ColorLightMatrix: Fix render.
...
- Use isometric projection
- Fix broken plug
- Use correct background color
While we are at it, add colors to show which 9 colors this device supports.
2021-11-22 14:49:20 +01:00
David Lechner
718a28c0da
@pybricks/ide-docs v2.0.1
@pybricks/ide-docs/v2.0.1
2021-11-19 20:30:11 -06:00
David Lechner
a2a375cb5c
docs/pupdevices: fix broken link
...
The link to the color light matrix page was broken due to an invalid
file name.
2021-11-19 20:28:33 -06:00
David Lechner
466d8d6c86
@pybricks/ide-docs v2.0.0
@pybricks/ide-docs/v2.0.0
2021-11-19 19:59:19 -06:00
David Lechner
e77b3dcf4d
v3.1.0rc1
v3.1.0rc1
2021-11-19 19:42:07 -06:00
David Lechner
b6d1eef2a1
pybricks.iodevices.LWP3Device: add api and docs
...
This adds docs and API stubs for pybricks.iodevices.LWP3Device.
Fixes: https://github.com/pybricks/support/issues/534
2021-11-19 19:31:53 -06:00
David Lechner
20cb5fdde5
doc: make all titles sentence case
...
This makes the casing of titles consistent throughout the docs.
Fixes: https://github.com/pybricks/pybricks-api/issues/75
2021-11-19 19:30:57 -06:00
David Lechner
2f574e8c03
pybricks.pupdevices.ColorLightMatrix: add api and docs
...
This adds the SPIKE 3x3 Color Light Matrix to the API and docs.
2021-11-19 19:30:57 -06:00
David Lechner
9d8531a85b
npm/ide-docs: move npm packaging to separate directory
...
This makes a clean separation between the packaging and the docs.
2021-11-19 19:30:57 -06:00
David Lechner
fee122cf33
CHANGELOG: move to top level
...
This makes the CHANGELOG easy to find.
2021-11-19 16:37:38 -06:00
David Lechner
f42ed06d4f
doc/main/CHANGELOG: use keepachangelog.com recommendations
...
This updates the changelog to use keepachangelog.com recommendations
to make it consistent with other Pybricks changelogs.
2021-08-30 13:29:38 -05:00
David Lechner
a8126f0bed
doc/main: fix dir in package.json
...
Another case of a missed ide to main directory.
2021-08-30 12:20:44 -05:00
David Lechner
2c4685f594
doc/main: add TAG make option
...
This splits the Sphinx tag option from SPHINXOPTS. This allows us to
specify the tag without having to remember to add -W and -t. It also
fixes not being able to specify the tag with make.bat on Windows.
While we are touching this, redundant SOURCEDIR uses are removed (main
is already the default) and the .github/workflows/publish-ide-docs.yml
script is fixed (ide directory no longer exists).
@pybricks/ide-docs/v1.6.0
2021-08-30 12:14:34 -05:00
David Lechner
8b0f98d25b
@pybricks/ide-docs v1.6.0
2021-08-30 11:12:05 -05:00
Laurens Valk
dd2e6e8603
ubuiltins.int: Document from_bytes manually.
...
Sphinx fails to show the docsting for class methods. Since we have very few of them, it is easier to just document this one manually
Fixes https://github.com/pybricks/pybricks-api/issues/86
2021-08-22 12:15:42 +02:00
Laurens Valk
a0f4818e26
ubuiltins.int: Document it.
2021-08-06 14:59:45 +02:00
Laurens Valk
af23c10566
ubuiltins.float: Document it.
...
Override typed docstrings in order to hide types like SupportsFloat.
2021-08-06 14:58:19 +02:00
Laurens Valk
d7096dad80
ubuiltins.complex: Document it.
...
Override typed docstrings in order to hide types like SupportsFloat and SupportsComplex.
Avoid use of ``real`` and ``imag``, since both ``a`` and ``b`` can be
either.
Also reduce number of overloads by letting ``b`` default to 0, which is true in practice.
See also https://github.com/pybricks/pybricks-api/issues/84
2021-08-06 14:25:00 +02:00
Laurens Valk
1d2b1f0307
rtd-requirements: Update to Sphinx 4.1
...
See https://github.com/pybricks/pybricks-api/issues/70
2021-08-06 10:47:14 +02:00
Laurens Valk
9945b43713
pyproject: Update to Sphinx 4.1.
...
Also bump to a development version of sphinx-rtd-theme that supports Sphinx 4.
Fixes https://github.com/pybricks/pybricks-api/issues/70
2021-08-06 10:40:26 +02:00
Laurens Valk
4124e1dd4e
doc/common/conf: Drop unused imports.
...
These prevent us from upgrading Sphinx and they aren't being used anyway.
Fixes e4c7e5abeb
2021-08-06 10:07:42 +02:00
Laurens Valk
d86b5584fb
ubuiltins: Type enumerate as a class.
...
This reverts commit a0ea0d8ca0 because of https://github.com/pybricks/pybricks-api/issues/72
2021-08-06 09:51:52 +02:00
Laurens Valk
1c01e981e0
usys: Clean up.
...
Add requirements, drop autodoc, and add a few cross references.
2021-08-05 16:13:50 +02:00
Laurens Valk
8a6ddf677c
pybricks.pupdevices.Remote: Light examples.
2021-08-05 14:56:00 +02:00
Laurens Valk
5d4481dbb0
pybricks.pupdevices.ColorDistanceSensor: Drop duplicate example.
2021-08-05 13:45:57 +02:00
Laurens Valk
786770cff2
ubuiltins.bool: Use arguments.
...
https://github.com/pybricks/pybricks-api/issues/82
2021-08-05 12:49:44 +02:00
Laurens Valk
572b573d2f
ubuiltins: Fix _type typos.
...
This was accidentally introduced via https://github.com/pybricks/pybricks-api/issues/71 by replacing too many things automatically.
2021-08-05 12:33:00 +02:00
Laurens Valk
15bd870140
ubuiltins: Use argument layout.
...
https://github.com/pybricks/pybricks-api/issues/82
2021-08-05 12:32:56 +02:00
Laurens Valk
b101d1992d
ubuiltins.print: Use English.
2021-08-05 12:32:51 +02:00