Charles Tritt / Mbed 2 deprecated GlobalExample

Dependencies:   mbed

Fork of FunctionExample by Charles Tritt

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.