mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
doc/battery: update to double colon reference
This lets us drop the instances hack
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
.. rubric:: Using the battery
|
||||
|
||||
.. automethod:: pybricks._instances.battery.voltage
|
||||
.. automethod:: pybricks.hubs::CityHub.battery.voltage
|
||||
|
||||
.. automethod:: pybricks.hubs::CityHub.battery.current
|
||||
|
||||
.. automethod:: pybricks._instances.battery.current
|
||||
|
||||
@@ -61,6 +61,6 @@
|
||||
|
||||
.. rubric:: Using the battery
|
||||
|
||||
.. automethod:: pybricks._instances.battery.voltage
|
||||
.. automethod:: pybricks.hubs::EV3Brick.battery.voltage
|
||||
|
||||
.. automethod:: pybricks._instances.battery.current
|
||||
.. automethod:: pybricks.hubs::EV3Brick.battery.current
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
|
||||
.. rubric:: Using the battery
|
||||
|
||||
.. automethod:: pybricks._instances.battery.voltage
|
||||
.. automethod:: pybricks.hubs::MoveHub.battery.voltage
|
||||
|
||||
.. automethod:: pybricks._instances.battery.current
|
||||
.. automethod:: pybricks.hubs::MoveHub.battery.current
|
||||
|
||||
@@ -21,9 +21,6 @@ lights = make_instance(LightArray)
|
||||
|
||||
buttons = make_instance(KeyPad)
|
||||
|
||||
battery = make_instance(Battery)
|
||||
|
||||
|
||||
class Motor(Motor):
|
||||
"""Generic class to control motors with built-in rotation sensors."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user