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
Instruction.h
00001 #ifndef INSTRUCTION_H 00002 #define INSTRUCTION_H 00003 00004 #include "mbed.h" 00005 #include "Gamepad.h" 00006 #include "N5110.h" 00007 00008 /** Instruction class 00009 *@brief create a instruction interface for game 00010 *@author Zeyu Feng 00011 *@10 MAY 2020 00012 */ 00013 00014 class Instruction{ 00015 public: 00016 /** Constructor */ 00017 Instruction(); 00018 00019 /** Destructor */ 00020 ~Instruction(); 00021 00022 void init(); 00023 00024 /** draw instruction by a for loop 00025 *@param lcd @details N5110 obejct 00026 *@param pad @details Gamepad object 00027 */ 00028 void draw(N5110 &lcd,Gamepad &pad); 00029 00030 private: 00031 00032 int _draw_flag; 00033 00034 Direction _d; 00035 00036 }; 00037 00038 #endif
Generated on Thu Jul 14 2022 12:45:25 by
1.7.2