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 4DGL-uLCD-SE
Fork of morseCode_1 by
main.cpp@3:6e52b66c5a0c, 2018-04-18 (annotated)
- Committer:
- Jeco13
- Date:
- Wed Apr 18 01:16:06 2018 +0000
- Revision:
- 3:6e52b66c5a0c
- Parent:
- 1:c4b5892da7ee
- Child:
- 4:62c590826ddb
Text_to_morse function written
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
colson | 0:4e10b6c94be9 | 1 | #include "mbed.h" |
colson | 0:4e10b6c94be9 | 2 | |
Jeco13 | 3:6e52b66c5a0c | 3 | //Part 1 |
Jeco13 | 3:6e52b66c5a0c | 4 | //Main takes in string text input from bluetooth module. Store in string variable |
Jeco13 | 3:6e52b66c5a0c | 5 | //call text_to_morse function on each character from input string variable |
Jeco13 | 3:6e52b66c5a0c | 6 | |
colson | 0:4e10b6c94be9 | 7 | DigitalOut myled(LED1); |
colson | 0:4e10b6c94be9 | 8 | |
colson | 0:4e10b6c94be9 | 9 | int main() { |
colson | 0:4e10b6c94be9 | 10 | while(1) { |
colson | 0:4e10b6c94be9 | 11 | myled = 1; |
colson | 0:4e10b6c94be9 | 12 | wait(0.2); |
colson | 0:4e10b6c94be9 | 13 | myled = 0; |
Jeco13 | 1:c4b5892da7ee | 14 | wait(0.2);//repository |
colson | 0:4e10b6c94be9 | 15 | } |
colson | 0:4e10b6c94be9 | 16 | } |