Skip to content

Commit 833e46a

Browse files
author
AnotherButler
committed
Update USB heading levels
Update USB heading levels, so TOC makes sense.
1 parent 1e2873b commit 833e46a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/api/usb/USBAudio.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# USBAudio
1+
## USBAudio
22

33
<span class="images">![](https://os.mbed.com/docs/mbed-os/development/mbed-os-api-doxy/class_u_s_b_audio.png)<span>USBAudio class hierarchy</span></span>
44

55
You can use the USBAudio interface to send and receive audio data over USB. Once a USB program is loaded onto the Mbed board, you can send audio data to your PC by selecting **Mbed Audio** as your PC's microphone input. Your Mbed Enabled board can receive audio data from your PC if you select **Mbed Audio** as your PC's speaker output.
66

7-
## USBAudio class reference
7+
### USBAudio class reference
88

99
[![View code](https://www.mbed.com/embed/?type=library)](https://os.mbed.com/docs/mbed-os/development/mbed-os-api-doxy/class_u_s_b_audio.html)
1010

11-
## USBAudio square wave example
11+
### USBAudio square wave example
1212

1313
This example outputs an audio square wave over USB.
1414

1515
```C++ TODO
16-
// This example simply generates a square wave.
16+
// This example simply generates a square wave.
1717
// Use a program like Audacity to record and hear the square wave, or route microphone input to output device.
1818
#include "mbed.h"
1919
#include "USBAudio.h"
@@ -47,7 +47,7 @@ int main() {
4747

4848
```
4949
50-
## USBAudio loopback example
50+
### USBAudio loopback example
5151
5252
This example loops input audio to the Mbed board back to the host PC, so that you may record the audio or listen to it through headphones or speakers.
5353
@@ -75,7 +75,7 @@ int main() {
7575
}
7676
```
7777

78-
## USBAudio play sound data example
78+
### USBAudio play sound data example
7979

8080
This example loads raw audio data to your board's flash. That data then plays on the host PC over USB. We have tested this example with the NXP FRDM-K64F, which has 1 MB of flash memory. If you are using a board that has less than 1 MB of flash memory, delete data from the end of the `data` array, and set `NUM_ELEMENTS` accordingly until the program size is small enough to flash without exceeding storage. Follow the link below, and click Ctrl + s to save the raw code view for `main.cpp`.
8181

0 commit comments

Comments
 (0)