mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-15 11:04:55 +00:00
api: rename CPlusHub to TechnicHub
This reflects the newly adopted naming convention. See https://github.com/pybricks/support/issues/119
This commit is contained in:
committed by
laurensvalk
parent
d6651fc3c5
commit
24d35993e9
+1
-1
@@ -11,7 +11,7 @@ City Hub (City/System)
|
||||
|
||||
.. include:: hubs_cityhub.inc
|
||||
|
||||
Control+ Hub (Technic)
|
||||
Technic Hub (Technic)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
.. figure:: ../api/images/cplushub.png
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
.. autoclass:: pybricks.hubs.CPlusHub
|
||||
.. autoclass:: pybricks.hubs.TechnicHub
|
||||
:no-members:
|
||||
|
||||
.. rubric:: Using the hub status light
|
||||
|
||||
.. automethod:: pybricks.hubs::CPlusHub.light.on
|
||||
.. automethod:: pybricks.hubs::TechnicHub.light.on
|
||||
|
||||
.. automethod:: pybricks.hubs::CPlusHub.light.off
|
||||
.. automethod:: pybricks.hubs::TechnicHub.light.off
|
||||
|
||||
.. rubric:: Using the battery
|
||||
|
||||
.. automethod:: pybricks.hubs::CPlusHub.battery.voltage
|
||||
.. automethod:: pybricks.hubs::TechnicHub.battery.voltage
|
||||
|
||||
.. automethod:: pybricks.hubs::CPlusHub.battery.current
|
||||
.. automethod:: pybricks.hubs::TechnicHub.battery.current
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ below.
|
||||
* - **EV3 Brick**
|
||||
- **Move Hub**
|
||||
- **City Hub**
|
||||
- **Control+ Hub**
|
||||
- **Technic Hub**
|
||||
|
||||
* - .. image:: images/ev3brick.png
|
||||
:target: start_ev3.html
|
||||
|
||||
+2
-2
@@ -28,7 +28,7 @@ class CityHub:
|
||||
light = _ColorLight()
|
||||
|
||||
|
||||
class CPlusHub:
|
||||
"""LEGO® Technic Control+ Hub."""
|
||||
class TechnicHub:
|
||||
"""LEGO® Technic Hub."""
|
||||
battery = _Battery()
|
||||
light = _ColorLight()
|
||||
|
||||
Reference in New Issue
Block a user