doc: flake8 and doc8

This commit is contained in:
Laurens Valk
2019-10-18 17:12:16 +02:00
parent 529f8fe31c
commit aa8c95234e
5 changed files with 21 additions and 52 deletions
+8 -7
View File
@@ -9,23 +9,24 @@
.. rubric:: Motor and Sensor Ports
+-------------------+-------------------+-------------------+-------------------+
| .. data:: Port.A | .. data:: Port.B | .. data:: Port.C | .. data:: Port.D |
+-------------------+-------------------+-------------------+-------------------+
| .. data:: Port.S1 | .. data:: Port.S2 | .. data:: Port.S3 | .. data:: Port.S4 |
+-------------------+-------------------+-------------------+-------------------+
+-----------------+-----------------+-----------------+-----------------+
|.. data:: Port.A |.. data:: Port.B |.. data:: Port.C |.. data:: Port.D |
+-----------------+-----------------+-----------------+-----------------+
|.. data:: Port.S1|.. data:: Port.S2|.. data:: Port.S3|.. data:: Port.S4|
+-----------------+-----------------+-----------------+-----------------+
.. rubric:: Overview of built-in devices
The following built-in devices are automatically initialized when you
create an `EV3Brick` object. Usage is described in the sections below.
.. attribute:: buttons = KeyPad([KeyPad.UP, KeyPad.DOWN, KeyPad.LEFT, KeyPad.RIGHT])
.. attribute::
buttons = KeyPad([KeyPad.UP, KeyPad.DOWN, KeyPad.LEFT, KeyPad.RIGHT])
.. attribute:: display = Display(width=178, height=128)
.. attribute:: light = ColorLight([Color.RED, Color.GREEN])
.. attribute:: speaker = Speaker()
.. attribute:: battery = Battery()
.. rubric:: Using the buttons
.. automethod:: pybricks._instances.buttons.pressed