gen maxx

Dependencies:   mbed

Revision:
1:7fcd3c79c65f
Parent:
0:5ee238da834b
--- a/main.cpp	Sat Dec 20 07:53:45 2014 +0000
+++ b/main.cpp	Sat Dec 20 08:08:42 2014 +0000
@@ -1,15 +1,18 @@
 #include "mbed.h"
-
+#include "string.h"
 
 
 int main()
 {
     int hours = 0x12;
     int scnds = 0x23;
-    char tmp[2] ; 
-    tmp[0] = (char)hours;
-    tmp[1] = '\0';
+    
+    char h[]={hours};
+
+    //char tmp[2] ; 
+    //tmp[0] = (char)hours;
+    //tmp[1] = '\0';
     for(int i=0;i<20;i++){
-    printf("%s \n",tmp);}
+    printf("%s \n",h);}
     return 0;
 }