@@ -12,7 +12,7 @@ There are a few things that can be done with the power board, namely current and
12
12
See the [ Power Board] ( /docs/kit/power_board ) hardware page for more details.
13
13
14
14
15
- [ Accessing the Power Board] ( #access_power_board ) {#access_power_board}
15
+ Accessing the Power Board
16
16
-------------------------
17
17
18
18
The power board can be accessed using the ` power_board ` property of the ` Robot ` object.
@@ -25,8 +25,8 @@ my_power_board = robot.power_board
25
25
~~~~~
26
26
27
27
28
- [ Power Outputs] ( #outputs ) {#outputs}
29
- ------------------------------------
28
+ Power Outputs
29
+ -------------
30
30
31
31
Each of the power board's controllable outputs has a constant whose name closely matches the name of the output:
32
32
@@ -69,8 +69,8 @@ they will appear to be missing and your code will break if you try to control th
69
69
</div >
70
70
71
71
72
- [ Battery Status] ( #battery ) {#battery}
73
- -------------------------------------
72
+ Battery Status
73
+ --------------
74
74
75
75
The power board can report both the battery voltage, in Volts, and the current being drawn from it, in Amps.
76
76
You can access these values like so:
@@ -88,8 +88,8 @@ print(robot.power_board.battery_sensor.current)
88
88
- The discharge curve is roughly linear between 11.4V and 10.4V.
89
89
90
90
91
- [ Beeping] ( #beeping ) {#beeping}
92
- ------------------------------
91
+ Beeping
92
+ -------
93
93
94
94
The power board has a piezo buzzer which can beep.
95
95
@@ -119,8 +119,8 @@ R.power_board.piezo.buzz(250, 3, blocking=True)
119
119
~~~~~
120
120
121
121
122
- [ Start Button] ( #start_button ) {#start_button}
123
- ---------------------------------------------
122
+ Start Button
123
+ ------------
124
124
125
125
You can manually wait for the start button to be pressed, not only at the start.
126
126
0 commit comments