Skip to content

Commit ce5a550

Browse files
committed
Remove description/header from example code
1 parent 93efe41 commit ce5a550

File tree

6 files changed

+0
-27
lines changed

6 files changed

+0
-27
lines changed

APIs_USB/USBAudio_loopback_example/main.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
// Audio loopback example use:
2-
// 1. Flash the board, and ensure the target's auxiliary USB is plugged into the PC.
3-
// 2. Select "Mbed Audio" as your PC's default speaker and microphone devices.
4-
// 3. Play some sound (YouTube, audio file, etc.) on your PC.
5-
// 4. The audio that is playing on your PC will be recorded by Audacity via USB loopback.
61
#include "mbed.h"
72
#include "USBAudio.h"
83

94
int main()
105
{
11-
126
USBAudio audio(true, 44100, 2, 44100, 2);
137

148
printf("Looping audio\r\n");

APIs_USB/USBAudio_square_wave/main.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// This example simply generates a square wave.
2-
// Use a program like Audacity to record and view the square wave, or route microphone(Mbed audio) to the output device.
31
#include "mbed.h"
42
#include "USBAudio.h"
53
#include <math.h>

APIs_USB/USBAudio_wav_audio_player/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Mbed WAV Audio Player
21
#include "mbed.h"
32
#include "USBAudio.h"
43
#include "SDBlockDevice.h"

APIs_USB/USBCDC_ECM/main.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
/*
2-
* Copyright (c) 2019 ARM Limited. All rights reserved.
3-
* SPDX-License-Identifier: Apache-2.0
4-
* Licensed under the Apache License, Version 2.0 (the License); you may
5-
* not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
12-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
161
#include "mbed.h"
172
#include "USBCDC_ECM.h"
183

APIs_USB/USBHID/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include <stdio.h>
2-
32
#include "mbed.h"
43
#include "drivers/USBHID.h"
54

APIs_USB/USBMouse_joystick/main.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//Grove - Thumb Joystick mouse
2-
//Constructor is blocking, so main will not run if the target's USB is not connected
31
#include "mbed.h"
42
#include "USBMouse.h"
53

0 commit comments

Comments
 (0)