Pancake Library for mbed

Files at this revision

API Documentation at this revision

Comitter:
suu____
Date:
Sat Nov 28 17:58:22 2015 +0000
Parent:
2:a711a6feb092
Commit message:
????????

Changed in this revision

pancake.cpp Show annotated file Show diff for this revision Revisions of this file
pancake.hpp Show annotated file Show diff for this revision Revisions of this file
diff -r a711a6feb092 -r 65314d2d33bb pancake.cpp
--- a/pancake.cpp	Sat Nov 28 16:33:24 2015 +0000
+++ b/pancake.cpp	Sat Nov 28 17:58:22 2015 +0000
@@ -33,8 +33,8 @@
     for(uint8_t i= 4;i < scoreSize + 4;i++){
         data[i] = score[i - 4];
         }
-    data[scoreSize +4] = 0xff;
-    sendCommand(data,scoreSize + 5);
+    
+    sendCommand(data,scoreSize + 4);
     }
 
 void Pancake::playMusic(){
diff -r a711a6feb092 -r 65314d2d33bb pancake.hpp
--- a/pancake.hpp	Sat Nov 28 16:33:24 2015 +0000
+++ b/pancake.hpp	Sat Nov 28 17:58:22 2015 +0000
@@ -18,7 +18,16 @@
     P_RedPurple,
     P_Gray
     }P_Color;
-
+typedef enum Pancake_Image{
+    P_Pancake,
+    P_Grassland,
+    P_Road,
+    P_Wilderness,
+    P_Sea,
+    P_Sky,
+    P_Space,
+    P_Castle
+    }P_Image;
 class sound_t{
     public:
     sound_t()