Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of morseCode_Final_Project by
Header_file.h@2:d60577c26a58, 2018-04-16 (annotated)
- Committer:
- Jeco13
- Date:
- Mon Apr 16 18:17:22 2018 +0000
- Revision:
- 2:d60577c26a58
Header file created
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jeco13 | 2:d60577c26a58 | 1 | #include "mbed.h" |
Jeco13 | 2:d60577c26a58 | 2 | |
Jeco13 | 2:d60577c26a58 | 3 | |
Jeco13 | 2:d60577c26a58 | 4 | AnalogOut speaker(p18); |
Jeco13 | 2:d60577c26a58 | 5 | DigitalOut led(p8); |
Jeco13 | 2:d60577c26a58 | 6 | |
Jeco13 | 2:d60577c26a58 | 7 | void dot(){ |
Jeco13 | 2:d60577c26a58 | 8 | //turn on speaker for 0.5s. |
Jeco13 | 2:d60577c26a58 | 9 | //turn on led for 0.5s. |
Jeco13 | 2:d60577c26a58 | 10 | //turn off speaker & led. |
Jeco13 | 2:d60577c26a58 | 11 | } |
Jeco13 | 2:d60577c26a58 | 12 | |
Jeco13 | 2:d60577c26a58 | 13 | void dash(){ |
Jeco13 | 2:d60577c26a58 | 14 | //turn on speaker for 0.5s. |
Jeco13 | 2:d60577c26a58 | 15 | //turn on led for 0.5s. |
Jeco13 | 2:d60577c26a58 | 16 | //turn off speaker & led. |
Jeco13 | 2:d60577c26a58 | 17 | } |