File tree Expand file tree Collapse file tree 2 files changed +41
-9
lines changed Expand file tree Collapse file tree 2 files changed +41
-9
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,12 @@ Make sure that you look at the `User Resources`_ section as well for links
45
45
to documentation and larger examples.
46
46
47
47
Usage Examples
48
- ------------
48
+ --------------
49
49
50
50
To run these minimal examples, run the Python3 interpreter from
51
51
the terminal using the ``python3 `` command:
52
52
53
- .. code-block ::
53
+ .. code-block :: bash
54
54
55
55
$ python3
56
56
Python 3.4.2 (default, Oct 8 2014, 14:47:30)
Original file line number Diff line number Diff line change @@ -3,6 +3,45 @@ Other classes
3
3
4
4
.. currentmodule :: ev3dev.core
5
5
6
+ Remote Control
7
+ --------------
8
+
9
+ .. autoclass :: RemoteControl
10
+ :members:
11
+ :inherited-members:
12
+
13
+ .. rubric :: Event handlers
14
+
15
+ These will be called when state of the corresponding button is changed:
16
+
17
+ .. py :data :: on_red_up
18
+ .. py :data :: on_red_down
19
+ .. py :data :: on_blue_up
20
+ .. py :data :: on_blue_down
21
+ .. py :data :: on_beacon
22
+
23
+ .. rubric :: Member functions and properties
24
+
25
+ Button
26
+ ------
27
+
28
+ .. autoclass :: ev3dev.ev3.Button
29
+ :members:
30
+ :inherited-members:
31
+
32
+ .. rubric :: Event handlers
33
+
34
+ These will be called when state of the corresponding button is changed:
35
+
36
+ .. py :data :: on_up
37
+ .. py :data :: on_down
38
+ .. py :data :: on_left
39
+ .. py :data :: on_right
40
+ .. py :data :: on_enter
41
+ .. py :data :: on_backspace
42
+
43
+ .. rubric :: Member functions and properties
44
+
6
45
Leds
7
46
----
8
47
@@ -44,13 +83,6 @@ Power Supply
44
83
.. autoclass :: PowerSupply
45
84
:members:
46
85
47
- Button
48
- ------
49
-
50
- .. autoclass :: ev3dev.ev3.Button
51
- :members:
52
- :inherited-members:
53
-
54
86
Sound
55
87
-----
56
88
You can’t perform that action at this time.
0 commit comments