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 TTU_CSC1300
main.cpp@0:b65c8c35b626, 2021-05-02 (annotated)
- Committer:
- blmarshall
- Date:
- Sun May 02 00:37:19 2021 +0000
- Revision:
- 0:b65c8c35b626
This program displays Hello World!
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| blmarshall | 0:b65c8c35b626 | 1 | /* |
| blmarshall | 0:b65c8c35b626 | 2 | * Lab #: 0 |
| blmarshall | 0:b65c8c35b626 | 3 | * Lab Title: Lab0 |
| blmarshall | 0:b65c8c35b626 | 4 | * Author(s): Baron Marshall |
| blmarshall | 0:b65c8c35b626 | 5 | * Date: 4/7/21 |
| blmarshall | 0:b65c8c35b626 | 6 | * Purpose: To have the board show the statement Hello World. |
| blmarshall | 0:b65c8c35b626 | 7 | */ |
| blmarshall | 0:b65c8c35b626 | 8 | |
| blmarshall | 0:b65c8c35b626 | 9 | #include "mbed.h" |
| blmarshall | 0:b65c8c35b626 | 10 | #include "TTU_CSC1300.h" |
| blmarshall | 0:b65c8c35b626 | 11 | |
| blmarshall | 0:b65c8c35b626 | 12 | //FUNCTION PROTOTYPES GO HERE |
| blmarshall | 0:b65c8c35b626 | 13 | TextLCD lcd(TextLCD::LCD_CURSOR_ON_BLINKING_ON); |
| blmarshall | 0:b65c8c35b626 | 14 | int main() |
| blmarshall | 0:b65c8c35b626 | 15 | { |
| blmarshall | 0:b65c8c35b626 | 16 | //this while(TRUE) loop keeps the program running |
| blmarshall | 0:b65c8c35b626 | 17 | while(TRUE) |
| blmarshall | 0:b65c8c35b626 | 18 | { |
| blmarshall | 0:b65c8c35b626 | 19 | //WRITE SOLUTION HERE |
| blmarshall | 0:b65c8c35b626 | 20 | //blinks "Hello, World!" every other second |
| blmarshall | 0:b65c8c35b626 | 21 | lcd.printf("Hello, World!"); |
| blmarshall | 0:b65c8c35b626 | 22 | wait_ms(1000); |
| blmarshall | 0:b65c8c35b626 | 23 | lcd.cls(); |
| blmarshall | 0:b65c8c35b626 | 24 | wait_ms(1000); |
| blmarshall | 0:b65c8c35b626 | 25 | |
| blmarshall | 0:b65c8c35b626 | 26 | } |
| blmarshall | 0:b65c8c35b626 | 27 | } |