Ray Liu
/
NuMaker-mbed-GPIO-button-buzzer-rgbled
Modify the file main.cpp for M487
README.md@0:fc7f6fbecb11, 2017-09-29 (annotated)
- Committer:
- shliu1
- Date:
- Fri Sep 29 05:42:52 2017 +0000
- Revision:
- 0:fc7f6fbecb11
main.cpp adds the setting of TARGET_NUMAKER_PFM_M487 for M487
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shliu1 | 0:fc7f6fbecb11 | 1 | # Getting started with LED and buzzer on mbed OS |
shliu1 | 0:fc7f6fbecb11 | 2 | |
shliu1 | 0:fc7f6fbecb11 | 3 | |
shliu1 | 0:fc7f6fbecb11 | 4 | ### Import NuMaker-mbed-GPIO-button-buzzer-rgbled from on-line IDE |
shliu1 | 0:fc7f6fbecb11 | 5 | 1. Please choose Nuvoton NuMaker-PFM-XXX as your target platform. |
shliu1 | 0:fc7f6fbecb11 | 6 | 2. Please press the left-up icon "New", then choose "NuMaker GPIO button with LED and buzzer" from the template list. |
shliu1 | 0:fc7f6fbecb11 | 7 | 3. Your NuMaker-mbed-GPIO-button-buzzer-rgbled program is existed. |
shliu1 | 0:fc7f6fbecb11 | 8 | |
shliu1 | 0:fc7f6fbecb11 | 9 | #### Now compile |
shliu1 | 0:fc7f6fbecb11 | 10 | Please press compile icon. |
shliu1 | 0:fc7f6fbecb11 | 11 | |
shliu1 | 0:fc7f6fbecb11 | 12 | #### Burn Code & Execute |
shliu1 | 0:fc7f6fbecb11 | 13 | 1. Connect the board NuMaker-PFM-XXX with your PC by USB cable, then there will be one "mbed" disk. |
shliu1 | 0:fc7f6fbecb11 | 14 | 2. Copy the built binary file into "mbed" disk on you PC. |
shliu1 | 0:fc7f6fbecb11 | 15 | 3. Press device's reset button to execute, press the SW1 button to turn on blue LED and green LED, |
shliu1 | 0:fc7f6fbecb11 | 16 | press the SW2 button to turn on buzzer. |