Game Ant Run - requires 8x8 LED RG shield - project MPOA (VUT v Brne)

Dependencies:   MMA8451Q RGB mbed

Files at this revision

API Documentation at this revision

Comitter:
tomas_dca
Date:
Thu Jan 08 14:04:54 2015 +0000
Parent:
1:806df0da28dc
Commit message:
new color for score

Changed in this revision

RGB.lib 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 806df0da28dc -r 3735ddc47ec7 RGB.lib
--- a/RGB.lib	Thu Jan 08 11:57:28 2015 +0000
+++ b/RGB.lib	Thu Jan 08 14:04:54 2015 +0000
@@ -1,1 +1,1 @@
-RGB#86900461fafd
+http://developer.mbed.org/users/tomas_dca/code/RGB/#86900461fafd
diff -r 806df0da28dc -r 3735ddc47ec7 main.cpp
--- a/main.cpp	Thu Jan 08 11:57:28 2015 +0000
+++ b/main.cpp	Thu Jan 08 14:04:54 2015 +0000
@@ -302,6 +302,11 @@
                             if(sym_clr == led_ant)
                                 sym_clr = led_lab; 
                             else
+                            if(sym_clr == led_lab)
+                            {
+                                sym_clr == led_used;
+                            }
+                            else
                                 sym_clr = led_ant; 
                                 
                             break;