finished p2-2

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Revision:
2:7abebe259d59
Parent:
1:05e3f86df6d5
--- a/compost_pile_public.h	Sat Apr 17 02:34:03 2021 +0000
+++ b/compost_pile_public.h	Mon Apr 26 00:30:47 2021 +0000
@@ -15,6 +15,7 @@
 typedef struct {
     int x;        ///< Bottom-left corner of the compost. x coordinate on the screen.
     int height;   ///< The height of the compost
+    int space;
     boundingBox comBox;
 
 } COMPOST;
@@ -37,6 +38,8 @@
 /** Make a pile of compost one unit taller
     @param index The index in compost_record. It must be smaller than MAX_NUM_COMPOST_PILES.
 */
+void removeTop(void);   
+
 void compost_add(int index);
 void maintainComp(void);
 COMPOST getTallestComp(void);