Laurens Valk
7409057b9c
pybricks: Indexing fixes.
...
The noindex made them not show up. Also fix misc related indexing issues.
2026-06-01 16:26:24 +02:00
Laurens Valk
acb5206349
pybricks.robotics: Update DriveBase.
2026-05-29 20:06:56 +02:00
Laurens Valk
6686fce3c3
pybricks.pupdevices: Document MarioHub, TechnicMoveHub and DuploTrain.
2026-05-29 16:59:51 +02:00
Laurens Valk
1f8f0f777a
pybricks.iodevices: Update PUPDevice and LUMPDevice.
...
Also remove Ev3devSensor, which is no longer used.
2026-05-29 12:30:58 +02:00
Laurens Valk
45b9b89d11
pybricks.messaging: Add tests.
2026-05-29 11:48:15 +02:00
Laurens Valk
a2ba8e4dcd
pybricks.hubs: Move .ble to BLERadio.
...
Follows upstream firmware change.
Update tests and examples too.
2026-05-29 11:12:50 +02:00
Frederik Leonhardt
7900f03574
jedi: Add tests for methods on hub.ble.
2026-05-28 11:20:54 +02:00
Frederik Leonhardt
7411a246c9
pybricks.common.BLE: Improve typing for hub constructor.
...
Update type hint for broadcast_channel to Optional, as None is allowed.
2026-05-28 11:12:17 +02:00
Gabriel Couchenour
32f974e7e5
Robotics.py: Fix issue with the type stub for DriveBase.angle() ( #165 )
...
The type was changed from `int` to `float` in https://github.com/pybricks/pybricks-micropython/commit/4d457a17fc13d42d9b311df99e05dafaeed67862 .
Technically, it is still `int` on BOOST Move hub (any system without floating point support). But most platforms use `float` so makes sense to have that in the type hints.
2025-09-19 21:53:37 -05:00
Laurens Valk
c5cfcd0ac8
tests: Update for IMU changes.
2025-02-25 11:16:27 +01:00
Laurens Valk
52b3b4c007
pybricks.tools.read_input_byte: Add last and chr options.
2024-04-04 21:45:26 +02:00
Laurens Valk
2e538b66c3
pybricks.hubs: Change button to buttons.
...
Fixes https://github.com/pybricks/support/issues/1254
2024-03-05 14:52:54 +01:00
Laurens Valk
72f25cb88e
pybricks.robotics: Car class updates.
...
Match minor firmware changes.
2024-03-05 14:29:58 +01:00
Laurens Valk
d3ca8ee719
pybricks.iodevices: Add XboxController.
2024-02-11 14:26:03 +01:00
Laurens Valk
b4adb50adf
pybricks.robotics: Add Car class.
2024-01-25 20:38:02 +01:00
Laurens Valk
91bc9a5d60
pybricks.hubs.MoveHub: Enable imu orientation.
2023-11-13 11:06:57 +01:00
Laurens Valk
d935841399
pybricks.robotics.DriveBase: Add brake.
2023-10-26 14:18:56 +02:00
Laurens Valk
209fba5c7e
pybricks.tools: Document multitasking.
2023-10-24 17:05:10 +02:00
Laurens Valk
faf11581c0
pybricks.tools: Document hub_menu.
...
Fixes https://github.com/pybricks/pybricks-api/issues/144
2023-10-24 16:23:59 +02:00
Laurens Valk
1a49d396d2
pybricks.robotics: Document use_gyro.
2023-10-23 15:39:52 +02:00
David Lechner
821a3e4455
pybricks.*: add MaybeAwaitable types
...
Many blocking functions now return Awaitable[T] when the async run
loop is running. The static analysis tools don't have a way of
knowing this, so the best we can do is return both types so that
x = method() and x = await method() both work mostly as expected.
2023-06-12 17:04:09 -05:00
David Lechner
41b9ce71dd
pybricks.tools: add read_input_byte()
...
This adds stubs and docs for the new `pybricks.tools.read_input_byte()`
function.
2023-06-12 11:06:20 -05:00
David Lechner
3274cef849
pybricks.common: Add new BLE class.
...
This adds a new BLE class that is used for connectionless broadcasting/
observing on hubs with built-in Bluetooth Low Energy.
Also see https://github.com/pybricks/pybricks-micropython/pull/158 .
2023-05-16 14:46:53 -05:00
Laurens Valk
870aae83c0
pybricks.tools: Document cross product.
2023-04-21 13:39:08 +02:00
Laurens Valk
9cde749e8a
pybricks.geometry: Drop module.
...
See https://github.com/pybricks/pybricks-micropython/pull/160
2023-04-21 13:33:19 +02:00
Laurens Valk
8bca5eb6e4
pybricks.robotics: Add GyroDriveBase.
2023-04-21 10:42:30 +02:00
Laurens Valk
98f2bb27fe
pybricks.robotics.DriveBase: Drop positive direction.
...
This reverts commit e4650cb1c9 .
This is not needed for gyro support, so it is better to remove it
before it is ever released.
2023-04-21 10:42:30 +02:00
Laurens Valk
ccd2b46819
pybricks.robotics.DriveBase: Revert gyro use via init.
...
This reverts commit dadaab6f61 .
We will introduce a separate class instead.
2023-04-21 10:42:30 +02:00
Laurens Valk
c0cb05dd74
pybricks.robotics.DriveBase: Document use of gyro.
2023-04-21 10:42:30 +02:00
Laurens Valk
b183e1420a
pybricks.pupdevices.Motor: Document speed time window.
2023-04-21 10:42:30 +02:00
Laurens Valk
b311c54261
pybricks._common.IMU: Change settings setter.
2023-04-21 10:42:30 +02:00
Laurens Valk
bb37b94f5e
pybricks._common.IMU: Add imu status.
2023-04-21 10:42:30 +02:00
Laurens Valk
5b25606afa
pybricks._common.IMU: Add rotation and orientation.
...
Also update implementation status for heading and reset_heading.
2023-04-21 10:42:30 +02:00
Laurens Valk
c415296b71
pybricks._common.Motor: Document profile.
...
Fixes https://github.com/pybricks/support/issues/966
2023-03-20 15:12:36 +01:00
Laurens Valk
e4650cb1c9
pybricks.robotics.DriveBase: Document positive direction.
...
Fixes https://github.com/pybricks/support/issues/992
2023-03-20 14:22:25 +01:00
Laurens Valk
428bca79ab
pybricks.common.Control: Document deadzone.
2023-02-02 14:45:34 +01:00
David Lechner
93c4fcc884
jedi: add update_user_modules() function
...
This function will be used to fix import completion of user module
names in Pybricks Code.
Issue: https://github.com/pybricks/support/issues/759
2022-12-28 16:06:47 -06:00
David Lechner
aa72605e99
jedi: fix code completion for local _*
...
This fixes code completion for identifier names starting with "_" in
the local ("__main__") file.
2022-12-28 15:33:33 -06:00
David Lechner
8ee725722f
jedi: fix completion of builtin types
...
Completions for `x.` where `x` is an instance of a builtin type was
broken because of filtering on the `builtins` modules. This extends
the filtering to allow attributes available on common builtin types
in Pybricks MicroPython.
2022-12-28 15:33:33 -06:00
Laurens Valk
eff6eaa253
jedi: Add ustruct, json modules.
2022-12-02 15:17:55 +01:00
Laurens Valk
82340c3eec
jedi: Update tests for stalled, done.
2022-12-02 12:43:24 +01:00
Laurens Valk
87c2802b17
jedi/tests: Fix order for Poll/poll.
...
Poll needs to come first for correct typing of poll.
2022-12-01 15:06:31 +01:00
Laurens Valk
3c0aaea207
usys: Add version info.
...
Fixes https://github.com/pybricks/pybricks-api/issues/119
2022-12-01 15:02:25 +01:00
Laurens Valk
9b314777e0
micropython: Document heap_lock, heap_unlock.
...
Fixes https://github.com/pybricks/pybricks-api/issues/116
2022-11-29 13:51:34 +01:00
Laurens Valk
1ae0a9005f
pybricks.parameters.Stop: Document NONE.
...
Fixes https://github.com/pybricks/pybricks-api/issues/104
2022-11-28 17:10:53 +01:00
Laurens Valk
7dd3edaee4
jedi/tests: Make PrimeHub the same as InventorHub.
2022-11-22 14:26:25 +01:00
Laurens Valk
ef57dbf4a1
pybricks.common.LightMatrix: Rename image() to icon().
...
Fixes https://github.com/pybricks/support/issues/409
2022-11-22 14:26:15 +01:00
David Lechner
62f6fc85a5
jedi: fix code completion for Color and Icon
...
The pybricks.parameters.Color and Icon types were not working with Jedi
for code completion since the constants were never assigned a value.
2022-11-10 12:23:24 -06:00
David Lechner
40fc2588f9
pybricks._common.System: add storage method
...
This adds stubs, docs and code completion tests for the System.storage()
method.
This was added to Pybricks MicroPython in:
https://github.com/pybricks/pybricks-micropython/commit/246ebea25d25d5a3e4a4e62ebd031491a409c923
2022-10-21 12:35:34 -05:00
David Lechner
03ee7f74e8
doc/pup/essentialhub: fix bit rot
...
This fixes bitrot for PR #96 . Also fixes a few minor issues where
changes were missed.
2022-06-29 12:08:33 -05:00