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.
chara.h
00001 /** My Life Class 00002 * @describe the characteristic 00003 * @author Huo Yuheng 00004 * @date May, 2020 00005 */ 00006 #ifndef CHARA_H 00007 #define CHARA_H 00008 00009 #include "Bitmap.h" 00010 #include "N5110.h" 00011 #include "Gamepad.h" 00012 #include "mbed.h" 00013 #include "FXOS8700CQ.h" 00014 00015 00016 struct xy{ 00017 int x; 00018 int y; 00019 }; 00020 00021 class chara{ 00022 public: 00023 /** initialize the function */ 00024 void init(); 00025 /** change the position */ 00026 void update(Gamepad &pad, FXOS8700CQ &device); 00027 /** draw the charachteristic*/ 00028 void display(N5110 &lcd); 00029 /** get the postion */ 00030 xy getxy(); 00031 private: 00032 /** bitmap */ 00033 int data[56]; 00034 /** posotion */ 00035 xy _xy; 00036 00037 }; 00038 #endif 00039
Generated on Mon Jul 18 2022 01:51:48 by
1.7.2