SGMP Coperations / Mbed 2 deprecated newdot

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
sotter
Date:
Mon Dec 11 12:35:12 2017 +0000
Parent:
1:be91a16b48ea
Commit message:
sota sota

Changed in this revision

ColorMbed.cpp Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r be91a16b48ea -r d714fd7bb7d5 ColorMbed.cpp
--- a/ColorMbed.cpp	Mon Dec 11 09:40:35 2017 +0000
+++ b/ColorMbed.cpp	Mon Dec 11 12:35:12 2017 +0000
@@ -84,7 +84,7 @@
     lat = 1;
     lat = 0;
     open_line = line[j];
-    wait(0.0001);
+    wait(0.00005);
     open_line = 0;
   }
 }
diff -r be91a16b48ea -r d714fd7bb7d5 main.cpp
--- a/main.cpp	Mon Dec 11 09:40:35 2017 +0000
+++ b/main.cpp	Mon Dec 11 12:35:12 2017 +0000
@@ -8,11 +8,11 @@
 Serial pc(D1, D0);
 DigitalIn sw(USER_BUTTON);
 
-uint8_t blue[3] = {0,10,0};
+uint8_t blue[3] = {0,5,0};
 uint8_t green[3] = {0,255,0};
 uint8_t red[3] = {0,0,255};
-uint8_t M[3] = {255,255,255};
-uint8_t I[3] = {255,0,0};
+uint8_t M[3] = {0,50,100};
+uint8_t I[3] = {100,0,0};
 uint8_t map_led[8] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
 uint8_t boss_led[8] = {0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
 uint8_t hero_led[8] = {0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
@@ -748,6 +748,7 @@
         dotmatrix.display_pic(I_led,I);
         
         if (sw==0){
+            
             hero_led[position_y] = 0x00;
             random();
             map();