scirodev 0.2.1__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {scirodev-0.2.1/scirodev.egg-info → scirodev-0.3.0}/PKG-INFO +2 -2
- {scirodev-0.2.1 → scirodev-0.3.0}/README.md +1 -1
- {scirodev-0.2.1 → scirodev-0.3.0}/pyproject.toml +1 -1
- {scirodev-0.2.1 → scirodev-0.3.0}/sciro/__init__.py +1 -1
- scirodev-0.3.0/sciro/floorpro.py +13 -0
- {scirodev-0.2.1 → scirodev-0.3.0}/sciro/hubs.py +1 -1
- {scirodev-0.2.1 → scirodev-0.3.0}/sciro/iodevices.py +1 -1
- scirodev-0.2.1/sciro/floorpro.py → scirodev-0.3.0/sciro/pump.py +6 -3
- {scirodev-0.2.1 → scirodev-0.3.0/scirodev.egg-info}/PKG-INFO +2 -2
- {scirodev-0.2.1 → scirodev-0.3.0}/scirodev.egg-info/SOURCES.txt +1 -0
- {scirodev-0.2.1 → scirodev-0.3.0}/LICENSE +0 -0
- {scirodev-0.2.1 → scirodev-0.3.0}/sciro/_common.py +0 -0
- {scirodev-0.2.1 → scirodev-0.3.0}/sciro/parameters.py +0 -0
- {scirodev-0.2.1 → scirodev-0.3.0}/sciro/py.typed +0 -0
- {scirodev-0.2.1 → scirodev-0.3.0}/scirodev/__init__.py +0 -0
- {scirodev-0.2.1 → scirodev-0.3.0}/scirodev/cli.py +0 -0
- {scirodev-0.2.1 → scirodev-0.3.0}/scirodev.egg-info/dependency_links.txt +0 -0
- {scirodev-0.2.1 → scirodev-0.3.0}/scirodev.egg-info/entry_points.txt +0 -0
- {scirodev-0.2.1 → scirodev-0.3.0}/scirodev.egg-info/requires.txt +0 -0
- {scirodev-0.2.1 → scirodev-0.3.0}/scirodev.egg-info/top_level.txt +0 -0
- {scirodev-0.2.1 → scirodev-0.3.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scirodev
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: PeakHub / sciro extensions to Pybricks: typed API stubs (sciro.*) and hub tooling on top of pybricksdev
|
|
5
5
|
Author: Thomas Schank
|
|
6
6
|
License: MIT
|
|
@@ -41,7 +41,7 @@ Then your IDE/type checker knows these, which the upstream `pybricks` stubs don'
|
|
|
41
41
|
```python
|
|
42
42
|
from sciro.parameters import Port # Port.A .. Port.H (PeakHub has 8 ports)
|
|
43
43
|
from sciro.iodevices import PUMPDevice # generic PUMP device access
|
|
44
|
-
from sciro.
|
|
44
|
+
from sciro.pump import FloorPro # PUMP devices (LP-FloorPro, ...)
|
|
45
45
|
from sciro.hubs import PeakHub # hub class incl. display.device()
|
|
46
46
|
|
|
47
47
|
hub = PeakHub()
|
|
@@ -21,7 +21,7 @@ Then your IDE/type checker knows these, which the upstream `pybricks` stubs don'
|
|
|
21
21
|
```python
|
|
22
22
|
from sciro.parameters import Port # Port.A .. Port.H (PeakHub has 8 ports)
|
|
23
23
|
from sciro.iodevices import PUMPDevice # generic PUMP device access
|
|
24
|
-
from sciro.
|
|
24
|
+
from sciro.pump import FloorPro # PUMP devices (LP-FloorPro, ...)
|
|
25
25
|
from sciro.hubs import PeakHub # hub class incl. display.device()
|
|
26
26
|
|
|
27
27
|
hub = PeakHub()
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "scirodev"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.3.0"
|
|
8
8
|
description = "PeakHub / sciro extensions to Pybricks: typed API stubs (sciro.*) and hub tooling on top of pybricksdev"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""sciro.floorpro -- deprecated alias of :mod:`sciro.pump` (where the FloorPro
|
|
2
|
+
class lives now). Kept so older programs keep type-checking.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from .pump import ( # noqa: F401 (re-exports)
|
|
6
|
+
IMU as IMU,
|
|
7
|
+
ColorSensor as ColorSensor,
|
|
8
|
+
FloorPro as FloorPro,
|
|
9
|
+
IRCalib as IRCalib,
|
|
10
|
+
IRRaw as IRRaw,
|
|
11
|
+
Line as Line,
|
|
12
|
+
Pixels as Pixels,
|
|
13
|
+
)
|
|
@@ -38,7 +38,7 @@ class LightMatrix(_common.LightMatrix):
|
|
|
38
38
|
the program ends.
|
|
39
39
|
|
|
40
40
|
Arguments:
|
|
41
|
-
device (FloorPro): The device to mirror.
|
|
41
|
+
device (FloorPro): The device to mirror (any ``sciro.pump`` device with a display stream).
|
|
42
42
|
brightness (Number, %): Brightness of the mirrored pixels, 0 .. 1000.
|
|
43
43
|
Above 100 the picture is amplified (clipping at full), since
|
|
44
44
|
the matrix is far dimmer than a sensor's own LED strip.
|
|
@@ -21,7 +21,7 @@ class PUMPDevice:
|
|
|
21
21
|
"""Generic access to a PUMP device (Power UART Multiplex Protocol) on a
|
|
22
22
|
PeakHub port. Streams are addressed by id (1..N); state and data are raw
|
|
23
23
|
``bytes`` decoded by the user or a convenience class such as
|
|
24
|
-
:class:`sciro.
|
|
24
|
+
:class:`sciro.pump.FloorPro`. Spec: ``PUMP-Protocol.md``.
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
27
|
OFF: int = 0
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
"""sciro.
|
|
1
|
+
"""sciro.pump -- PUMP devices on the PeakHub, the PUMP counterpart of
|
|
2
|
+
``pybricks.pupdevices``: the generic :class:`PUMPDevice` plus one class per
|
|
3
|
+
device (currently the LP-FloorPro line sensor).
|
|
2
4
|
|
|
3
5
|
Stub for the frozen module of the same name. Every reading method returns the
|
|
4
6
|
value directly, or an awaitable under multitasking.
|
|
@@ -20,7 +22,8 @@ if TYPE_CHECKING:
|
|
|
20
22
|
MaybeAwaitableRGBC,
|
|
21
23
|
)
|
|
22
24
|
|
|
23
|
-
from .iodevices import PUMPDevice
|
|
25
|
+
from .iodevices import PUMPDevice as PUMPDevice # noqa: F401 (re-export)
|
|
26
|
+
from .iodevices import StreamInfo
|
|
24
27
|
from .parameters import Port as _Port
|
|
25
28
|
|
|
26
29
|
|
|
@@ -80,7 +83,7 @@ class Pixels(_Stream):
|
|
|
80
83
|
"""The sensor's own LED strip picture, rendered on the device at full scale:
|
|
81
84
|
18 ``(r, g, b)`` triplets = IR channels 0..14, EXT1, EXT2, battery. Off by
|
|
82
85
|
default. A PeakHub mirrors it on its 5x5 matrix with
|
|
83
|
-
:meth:`sciro.hubs.
|
|
86
|
+
:meth:`sciro.hubs.LightMatrix.device`.
|
|
84
87
|
"""
|
|
85
88
|
|
|
86
89
|
def read(self) -> MaybeAwaitablePixels:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scirodev
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: PeakHub / sciro extensions to Pybricks: typed API stubs (sciro.*) and hub tooling on top of pybricksdev
|
|
5
5
|
Author: Thomas Schank
|
|
6
6
|
License: MIT
|
|
@@ -41,7 +41,7 @@ Then your IDE/type checker knows these, which the upstream `pybricks` stubs don'
|
|
|
41
41
|
```python
|
|
42
42
|
from sciro.parameters import Port # Port.A .. Port.H (PeakHub has 8 ports)
|
|
43
43
|
from sciro.iodevices import PUMPDevice # generic PUMP device access
|
|
44
|
-
from sciro.
|
|
44
|
+
from sciro.pump import FloorPro # PUMP devices (LP-FloorPro, ...)
|
|
45
45
|
from sciro.hubs import PeakHub # hub class incl. display.device()
|
|
46
46
|
|
|
47
47
|
hub = PeakHub()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|