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.
Fork of FunctionExample by
Diff: main.cpp
- Revision:
- 1:8a2fb22f43f3
- Parent:
- 0:27aceb51cedb
- Child:
- 2:c0ac34a64be1
diff -r 27aceb51cedb -r 8a2fb22f43f3 main.cpp --- a/main.cpp Tue Oct 03 16:15:01 2017 +0000 +++ b/main.cpp Tue Oct 03 18:05:17 2017 +0000 @@ -13,8 +13,8 @@ int main() { while(true) { - const char ASCII_ESC=27; // Optional define escape for escape sequence. - printf( "%c[2J", ASCII_ESC ); // Optional VT100 clear screen escape seq. + const char ESC=27; // Optional - Define escape for escape sequence. + printf("%c[2J", ESC); // Optional - VT100 clear screen escape sequence. printf("In function demo main...\n"); int a = 5; // Create and initialize a. printf("a = %d\n", a); // Display a.