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.
Diff: Food/Food.h
- Revision:
- 2:b891a5841ee2
- Parent:
- 0:bc1d36f5f772
- Child:
- 3:e11f0976b2db
--- a/Food/Food.h Sun May 05 14:14:58 2019 +0000 +++ b/Food/Food.h Sun May 05 14:59:29 2019 +0000 @@ -1,3 +1,8 @@ +/** My Sample Class + * @brief Does nothing useful + * @author Du Xianjie + * @date May, 2019 + */ #ifndef FOOD_H #define FOOD_H @@ -18,13 +23,26 @@ class Food{ public: - + /** Constructor */ Food(); + /** Destructor */ ~Food(); - + + /** Set the screen + * @param init () + */ void init(); + /** Draw the screen + * @renturn draw (N5110 &lcd) + */ void draw(N5110 &lcd); + /** Get the response + * @response () + */ void response(); + /** Get the position + * @return the current position + */ pos returnPos(); private: