P9: A7,A13 battle ship 2016 J
Dependencies: mbed
ColorMbed.h
00001 /* 00002 ************************************* 00003 I have some idea to create only three function 00004 display ship; 00005 display dot or bomb; 00006 finally display game interface; 00007 ************************************* 00008 */ 00009 00010 #ifndef ColorMbed_H 00011 #define ColorMbed_H 00012 00013 #include "mbed.h" 00014 00015 class ColorMbed{ 00016 00017 public: 00018 00019 void init(); // set white_balance 00020 /* 00021 display_dot can display one dot on dot matrix 00022 parameter : 00023 row : int (1,2,3,...,8) 00024 column : int (1,2,3,...,8) 00025 color : {B,G,R} 00026 */ 00027 00028 void display_pic(int *pic,int *color); 00029 /* 00030 display picture from hexa code color in this function is 00031 only color and blank 00032 parameter : array hexa number (pic[8] = {0x3c,0x7e,0xdc,0xf8,0xf8,0xfc,0x7e,0x3c}) 00033 color array {R,G,B} (rgb[3] = {255,255,255}) 00034 */ 00035 00036 void display_big_array(int pic[8][8][3]); 00037 /* 00038 display array {R,G,B} 00039 parameter : array 3-dimension for 1 picture 00040 */ 00041 00042 }; 00043 #endif
Generated on Wed Jul 20 2022 12:48:08 by
1.7.2