Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
compost_pile.cpp@0:95264f964374, 2021-03-29 (annotated)
- Committer:
- DCchico
- Date:
- Mon Mar 29 21:17:26 2021 -0400
- Revision:
- 0:95264f964374
- Child:
- 1:4421c1e849e9
inital commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DCchico |
0:95264f964374 | 1 | //================================================================= |
DCchico |
0:95264f964374 | 2 | // The file is for module "compost pile" |
DCchico |
0:95264f964374 | 3 | // |
DCchico |
0:95264f964374 | 4 | // Copyright 2020 Georgia Tech. All rights reserved. |
DCchico |
0:95264f964374 | 5 | // The materials provided by the instructor in this course are for |
DCchico |
0:95264f964374 | 6 | // the use of the students currently enrolled in the course. |
DCchico |
0:95264f964374 | 7 | // Copyrighted course materials may not be further disseminated. |
DCchico |
0:95264f964374 | 8 | // This file must not be made publicly available anywhere. |
DCchico |
0:95264f964374 | 9 | //================================================================== |
DCchico |
0:95264f964374 | 10 | |
DCchico |
0:95264f964374 | 11 | #include "compost_pile_private.h" |
DCchico |
0:95264f964374 | 12 | |
DCchico |
0:95264f964374 | 13 | COMPOST compost_record[NUM_PILE]; |
DCchico |
0:95264f964374 | 14 | int tallest_pile_height; |
DCchico |
0:95264f964374 | 15 | |
DCchico |
0:95264f964374 | 16 | |
DCchico |
0:95264f964374 | 17 | // See the comments in compost_pile_public.h |
DCchico |
0:95264f964374 | 18 | void compost_pile_init() { |
DCchico |
0:95264f964374 | 19 | |
DCchico |
0:95264f964374 | 20 | } |
DCchico |
0:95264f964374 | 21 | |
DCchico |
0:95264f964374 | 22 | COMPOST compost_get_info(int index){ |
DCchico |
0:95264f964374 | 23 | |
DCchico |
0:95264f964374 | 24 | } |
DCchico |
0:95264f964374 | 25 | |
DCchico |
0:95264f964374 | 26 | void compost_add(int index) { |
DCchico |
0:95264f964374 | 27 | |
DCchico |
0:95264f964374 | 28 | } |
DCchico |
0:95264f964374 | 29 | |
DCchico |
0:95264f964374 | 30 | void draw_compost(void){ |
DCchico |
0:95264f964374 | 31 | |
DCchico |
0:95264f964374 | 32 | } |
DCchico |
0:95264f964374 | 33 | |
DCchico |
0:95264f964374 | 34 | int get_compost_tallest_height() { |
DCchico |
0:95264f964374 | 35 | |
DCchico |
0:95264f964374 | 36 | } |
DCchico |
0:95264f964374 | 37 | |
DCchico |
0:95264f964374 | 38 | int get_compost_height(int index) { |
DCchico |
0:95264f964374 | 39 | |
DCchico |
0:95264f964374 | 40 | } |