bien spi no se queda pegado

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
djinn77
Date:
Fri Sep 14 10:14:07 2018 +0000
Parent:
14:38fecafccf5b
Child:
16:6a4776a1357e
Commit message:
Correccion final letra Z

Changed in this revision

piezas.h Show annotated file Show diff for this revision Revisions of this file
tetris_pc.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/piezas.h	Fri Sep 14 09:54:05 2018 +0000
+++ b/piezas.h	Fri Sep 14 10:14:07 2018 +0000
@@ -47,19 +47,19 @@
                      0b0010000000,
                      0,0,0,0,0};
                      
- uint16_t PZA_ZN [8]={0b0011000000,
-                      0b0110000000,
+ uint16_t PZA_ZN [8]={0b0110000000,
+                      0b1100000000,
                       0b0000000000,
                       0,0,0,0,0};
                       
- uint16_t PZA_ZO [8]={0b0010000000,
-                      0b0011000000,
-                      0b0001000000,
+ uint16_t PZA_ZO [8]={0b0100000000,
+                      0b0110000000,
+                      0b0010000000,
                       0,0,0,0,0};
                       
 uint16_t PZA_ZD [8]= {0b0000000000,
-                      0b0011000000,
                       0b0110000000,
+                      0b1100000000,
                       0,0,0,0,0};                                                               
                                         
  uint16_t PZA_I[8]= {0b0000000000,
--- a/tetris_pc.cpp	Fri Sep 14 09:54:05 2018 +0000
+++ b/tetris_pc.cpp	Fri Sep 14 10:14:07 2018 +0000
@@ -139,7 +139,9 @@
              }
              
              break;
-
+             default:
+             desplazar(VACIO, pos);
+             break;
              }
      }