Kevin Moonlight / microbit-hello-world

Dependencies:   microbit

Files at this revision

API Documentation at this revision

Comitter:
yyzkevin
Date:
Tue Jan 02 18:44:01 2018 +0000
Parent:
0:a7b6a3a07a5d
Commit message:
commit

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Aug 29 03:14:25 2017 +0000
+++ b/main.cpp	Tue Jan 02 18:44:01 2018 +0000
@@ -11,8 +11,8 @@
 
 char *FrameBuffer;
 
-#define HorizontalResolution 128
-#define VerticalResolution 240
+#define HorizontalResolution 128 //128
+#define VerticalResolution 240 //240
 
 
 unsigned int CurrentLine=1;
@@ -287,14 +287,14 @@
     DrawLine(100,20,100,100);
                 
     //DrawLine(20,20,100,100);        
-    DrawString(5,120,"Charlie Rocks!");
+    DrawString(5,120,"Hello World!");
             
     char Message[32];               
     unsigned int i;                        
     while(1) {              
         
         i++;
-        sprintf((char *)&Message,"OK %u",i);
+        sprintf((char *)&Message,"%u",i);
         DrawString(5,130,Message);
        // printf(".\n\r");
         //printf("Enter Line:");