Modify the file main.cpp for M487

README.md

Committer:
shliu1
Date:
2017-09-29
Revision:
0:30d5f101ebff

File content as of revision 0:30d5f101ebff:

# Getting started PWM0 with a speaker on mbed OS


### Import NuMaker-mbed-PWM0_playnote from on-line IDE
1. Please choose Nuvoton NuMaker-PFM-XXX as your target platform.
2. Please press the left-up icon "New", then choose "NuMaker PWM0 play notes (to speaker)" from the template list.
3. Your NuMaker-mbed-PWM0_playnote program is existed.

#### Now compile
Please press compile icon.

#### Burn Code & Execute
1. Connect the board NuMaker-PFM-XXX with your PC by USB cable, then there will be one "mbed" disk.
2. Copy the built binary file into "mbed" disk on you PC.
3. Press device's reset button to execute, PWM0 outputs notes to a speaker.