Chinese module HY-1.8 SPI TFT lcd Display library.

Dependencies:   BurstSPI

Dependents:   KL25Z_DCF77_HY-1_8LCD

Fork of HY-1_8TFT_ST7735 by Paul Staron

Committer:
star297
Date:
Sun Oct 11 21:30:26 2015 +0000
Revision:
2:26149011665e
Parent:
1:ef70eaf15b18
updated BurstSPI

Who changed what in which revision?

UserRevisionLine numberNew contents of line
star297 0:35a1964228b4 1 // ST7735 8 Bit SPI Library
star297 0:35a1964228b4 2
star297 0:35a1964228b4 3 #ifndef MBED_ST7735_TFT_H
star297 0:35a1964228b4 4 #define MBED_ST7735_TFT_H
star297 0:35a1964228b4 5
star297 0:35a1964228b4 6 #include "mbed.h"
star297 0:35a1964228b4 7 #include "GraphicsDisplay.h"
star297 2:26149011665e 8 #include "BurstSPI.h"
star297 0:35a1964228b4 9
star297 0:35a1964228b4 10 #define RGB(r,g,b) (((r&0xF8)<<8)|((g&0xFC)<<3)|((b&0xF8)>>3)) //5 red | 6 green | 5 blue
star297 0:35a1964228b4 11
star297 0:35a1964228b4 12 /*define ST7735 Commands */
star297 0:35a1964228b4 13
star297 0:35a1964228b4 14 #define ST7735_NOP 0x0
star297 0:35a1964228b4 15 #define ST7735_SWRESET 0x01
star297 0:35a1964228b4 16 #define ST7735_RDDID 0x04
star297 0:35a1964228b4 17 #define ST7735_RDDST 0x09
star297 0:35a1964228b4 18
star297 0:35a1964228b4 19 #define ST7735_SLPIN 0x10
star297 0:35a1964228b4 20 #define ST7735_SLPOUT 0x11
star297 0:35a1964228b4 21 #define ST7735_PTLON 0x12
star297 0:35a1964228b4 22 #define ST7735_NORON 0x13
star297 0:35a1964228b4 23
star297 0:35a1964228b4 24 #define ST7735_INVOFF 0x20
star297 0:35a1964228b4 25 #define ST7735_INVON 0x21
star297 0:35a1964228b4 26 #define ST7735_DISPOFF 0x28
star297 0:35a1964228b4 27 #define ST7735_DISPON 0x29
star297 0:35a1964228b4 28 #define ST7735_CASET 0x2A
star297 0:35a1964228b4 29 #define ST7735_RASET 0x2B
star297 0:35a1964228b4 30 #define ST7735_RAMWR 0x2C
star297 0:35a1964228b4 31 #define ST7735_RAMRD 0x2E
star297 0:35a1964228b4 32
star297 0:35a1964228b4 33 #define ST7735_COLMOD 0x3A
star297 0:35a1964228b4 34 #define ST7735_MADCTL 0x36
star297 0:35a1964228b4 35
star297 0:35a1964228b4 36
star297 0:35a1964228b4 37 #define ST7735_FRMCTR1 0xB1
star297 0:35a1964228b4 38 #define ST7735_FRMCTR2 0xB2
star297 0:35a1964228b4 39 #define ST7735_FRMCTR3 0xB3
star297 0:35a1964228b4 40 #define ST7735_INVCTR 0xB4
star297 0:35a1964228b4 41 #define ST7735_DISSET5 0xB6
star297 0:35a1964228b4 42
star297 0:35a1964228b4 43 #define ST7735_PWCTR1 0xC0
star297 0:35a1964228b4 44 #define ST7735_PWCTR2 0xC1
star297 0:35a1964228b4 45 #define ST7735_PWCTR3 0xC2
star297 0:35a1964228b4 46 #define ST7735_PWCTR4 0xC3
star297 0:35a1964228b4 47 #define ST7735_PWCTR5 0xC4
star297 0:35a1964228b4 48 #define ST7735_VMCTR1 0xC5
star297 0:35a1964228b4 49
star297 0:35a1964228b4 50 #define ST7735_RDID1 0xDA
star297 0:35a1964228b4 51 #define ST7735_RDID2 0xDB
star297 0:35a1964228b4 52 #define ST7735_RDID3 0xDC
star297 0:35a1964228b4 53 #define ST7735_RDID4 0xDD
star297 0:35a1964228b4 54
star297 0:35a1964228b4 55 #define ST7735_PWCTR6 0xFC
star297 0:35a1964228b4 56
star297 0:35a1964228b4 57 #define ST7735_GMCTRP1 0xE0
star297 0:35a1964228b4 58 #define ST7735_GMCTRN1 0xE1
star297 0:35a1964228b4 59
star297 2:26149011665e 60 // some RGB color definitions RED GREEN BLUE
star297 0:35a1964228b4 61
star297 2:26149011665e 62 #define Black 0x0000 // 0, 0, 0
star297 2:26149011665e 63 #define Navy 0x8000 // 0, 0, 128
star297 2:26149011665e 64 #define DarkGreen 0x0400 // 0, 128, 0
star297 2:26149011665e 65 #define DarkCyan 0x8400 // 0, 128, 128
star297 2:26149011665e 66 #define Maroon 0x0010 // 128, 0, 0
star297 2:26149011665e 67 #define Purple 0x8010 // 128, 0, 128
star297 2:26149011665e 68 #define Olive 0x0410 // 128, 128, 0
star297 2:26149011665e 69 #define LightGrey 0xC618 // 192, 192, 192
star297 2:26149011665e 70 #define DarkGrey 0x7BEF // 128, 128, 128
star297 2:26149011665e 71 #define Red 0x001F // 255, 0, 0
star297 2:26149011665e 72 #define Green 0x07E0 // 0, 255, 0
star297 2:26149011665e 73 #define Yellow 0x07FF // 255, 255, 0
star297 2:26149011665e 74 #define Blue 0xF800 // 0, 0, 255
star297 2:26149011665e 75 #define Magenta 0xF81F // 255, 0, 255
star297 2:26149011665e 76 #define Cyan 0xFFE0 // 0, 255, 255
star297 2:26149011665e 77 #define White 0xFFFF // 255, 255, 255
star297 2:26149011665e 78 #define Orange 0x053F // 255, 165, 0
star297 2:26149011665e 79 #define GreenYellow 0x2FF5 // 173, 255, 47
star297 2:26149011665e 80
star297 2:26149011665e 81 /* Use this to Calculate and define any colour
star297 2:26149011665e 82
star297 2:26149011665e 83 #define RGB565CONVERT(red, green, blue) (uint16_t)( (( blue >> 3 ) << 11 ) | (( green >> 2 ) << 5 ) | ( red >> 3 ))
star297 2:26149011665e 84 lcd.printf("%4X ",RGB565CONVERT(red value 0-255,green value 0-255,blue value 0-255));
star297 2:26149011665e 85 */
star297 2:26149011665e 86
star297 0:35a1964228b4 87 class ST7735_TFT : public GraphicsDisplay {
star297 0:35a1964228b4 88 public:
star297 0:35a1964228b4 89
star297 0:35a1964228b4 90 /** Create a ST7735_TFT object connected to SPI and three pins. ST7735 requires rs pin to toggle between data/command
star297 0:35a1964228b4 91 *
star297 0:35a1964228b4 92 * @param mosi(SDA),miso(NC),sclk(SCK) SPI
star297 0:35a1964228b4 93 * @param cs pin connected to CS of display (called SS for 'Slave Select' in ST7735 datasheet)
star297 0:35a1964228b4 94 * @param rs pin connected to RS (A0)of display (called D/CX in ST7735 datasheet)
star297 0:35a1964228b4 95 * @param reset pin connected to RESET of display
star297 0:35a1964228b4 96 *
star297 0:35a1964228b4 97 */
star297 0:35a1964228b4 98 ST7735_TFT(PinName mosi, PinName miso, PinName sclk, PinName cs, PinName rs, PinName reset,const char* name ="TFT");
star297 0:35a1964228b4 99
star297 0:35a1964228b4 100 /** Get the width of the screen in pixel
star297 0:35a1964228b4 101 *
star297 0:35a1964228b4 102 * @param
star297 0:35a1964228b4 103 * @returns width of screen in pixel
star297 0:35a1964228b4 104 *
star297 0:35a1964228b4 105 */
star297 0:35a1964228b4 106 virtual int width();
star297 0:35a1964228b4 107
star297 0:35a1964228b4 108 /** Get the height of the screen in pixel
star297 0:35a1964228b4 109 *
star297 0:35a1964228b4 110 * @returns height of screen in pixel
star297 0:35a1964228b4 111 *
star297 0:35a1964228b4 112 */
star297 0:35a1964228b4 113 virtual int height();
star297 0:35a1964228b4 114
star297 0:35a1964228b4 115 /** Draw a pixel at x,y with color
star297 0:35a1964228b4 116 *
star297 0:35a1964228b4 117 * @param x horizontal position
star297 0:35a1964228b4 118 * @param y vertical position
star297 0:35a1964228b4 119 * @param color 16 bit pixel color
star297 0:35a1964228b4 120 */
star297 0:35a1964228b4 121 virtual void pixel(int x, int y, int colour);
star297 0:35a1964228b4 122
star297 0:35a1964228b4 123 /** Get colour of pixel at x,y
star297 0:35a1964228b4 124 *
star297 0:35a1964228b4 125 * @param x horizontal position
star297 0:35a1964228b4 126 * @param y vertical position
star297 0:35a1964228b4 127 */
star297 0:35a1964228b4 128
star297 0:35a1964228b4 129 int getpixel(unsigned int x, unsigned int y);
star297 0:35a1964228b4 130
star297 0:35a1964228b4 131 /** draw a circle
star297 0:35a1964228b4 132 *
star297 0:35a1964228b4 133 * @param x0,y0 center
star297 0:35a1964228b4 134 * @param r radius
star297 0:35a1964228b4 135 * @param color 16 bit color *
star297 0:35a1964228b4 136 *
star297 0:35a1964228b4 137 */
star297 0:35a1964228b4 138
star297 0:35a1964228b4 139 void circle(int x, int y, int r, int colour);
star297 0:35a1964228b4 140
star297 0:35a1964228b4 141 /** draw a filled circle
star297 0:35a1964228b4 142 *
star297 0:35a1964228b4 143 * @param x0,y0 center
star297 0:35a1964228b4 144 * @param r radius
star297 0:35a1964228b4 145 * @param color 16 bit color *
star297 0:35a1964228b4 146 *
star297 0:35a1964228b4 147 * use circle with different radius,
star297 0:35a1964228b4 148 * can miss some pixel
star297 0:35a1964228b4 149 */
star297 0:35a1964228b4 150 void fillcircle(int x, int y, int r, int colour);
star297 0:35a1964228b4 151
star297 0:35a1964228b4 152 /** draw a 1 pixel line
star297 0:35a1964228b4 153 *
star297 0:35a1964228b4 154 * @param x0,y0 start point
star297 0:35a1964228b4 155 * @param x1,y1 stop point
star297 0:35a1964228b4 156 * @param color 16 bit color
star297 0:35a1964228b4 157 *
star297 0:35a1964228b4 158 */
star297 0:35a1964228b4 159 void line(int x0, int y0, int x1, int y1, int colour);
star297 0:35a1964228b4 160
star297 0:35a1964228b4 161 /** draw a rect
star297 0:35a1964228b4 162 *
star297 0:35a1964228b4 163 * @param x0,y0 top left corner
star297 0:35a1964228b4 164 * @param x1,y1 down right corner
star297 0:35a1964228b4 165 * @param color 16 bit color
star297 0:35a1964228b4 166 * *
star297 0:35a1964228b4 167 */
star297 0:35a1964228b4 168 void rect(int x0, int y0, int x1, int y1, int colour);
star297 0:35a1964228b4 169
star297 0:35a1964228b4 170 /** draw a filled rect
star297 0:35a1964228b4 171 *
star297 0:35a1964228b4 172 * @param x0,y0 top left corner
star297 0:35a1964228b4 173 * @param x1,y1 down right corner
star297 0:35a1964228b4 174 * @param color 16 bit color
star297 0:35a1964228b4 175 *
star297 0:35a1964228b4 176 */
star297 0:35a1964228b4 177 void fillrect(int x0, int y0, int x1, int y1, int colour);
star297 0:35a1964228b4 178
star297 0:35a1964228b4 179 /** setup cursor position
star297 0:35a1964228b4 180 *
star297 0:35a1964228b4 181 * @param x x-position (top left)
star297 0:35a1964228b4 182 * @param y y-position
star297 0:35a1964228b4 183 */
star297 0:35a1964228b4 184 virtual void locate(int x, int y);
star297 0:35a1964228b4 185
star297 0:35a1964228b4 186 /** Fill the screen with _backgroun color
star297 0:35a1964228b4 187 *
star297 0:35a1964228b4 188 */
star297 0:35a1964228b4 189 virtual void cls (void);
star297 0:35a1964228b4 190
star297 0:35a1964228b4 191
star297 0:35a1964228b4 192 /** calculate the max number of char in a line
star297 0:35a1964228b4 193 *
star297 0:35a1964228b4 194 * @returns max columns
star297 0:35a1964228b4 195 * depends on actual font size
star297 0:35a1964228b4 196 *
star297 0:35a1964228b4 197 */
star297 0:35a1964228b4 198 virtual int columns(void);
star297 0:35a1964228b4 199
star297 0:35a1964228b4 200 /** calculate the max number of columns
star297 0:35a1964228b4 201 *
star297 0:35a1964228b4 202 * @returns max column
star297 0:35a1964228b4 203 * depends on actual font size
star297 0:35a1964228b4 204 *
star297 0:35a1964228b4 205 */
star297 0:35a1964228b4 206 virtual int rows(void);
star297 0:35a1964228b4 207
star297 0:35a1964228b4 208 /** put a char on the screen
star297 0:35a1964228b4 209 *
star297 0:35a1964228b4 210 * @param value char to print
star297 0:35a1964228b4 211 * @returns printed char
star297 0:35a1964228b4 212 *
star297 0:35a1964228b4 213 */
star297 0:35a1964228b4 214 virtual int _putc(int value);
star297 0:35a1964228b4 215
star297 0:35a1964228b4 216 /** draw a character on given position out of the active font to the TFT
star297 0:35a1964228b4 217 *
star297 0:35a1964228b4 218 * @param x x-position of char (top left)
star297 0:35a1964228b4 219 * @param y y-position
star297 0:35a1964228b4 220 * @param c char to print
star297 0:35a1964228b4 221 *
star297 0:35a1964228b4 222 */
star297 0:35a1964228b4 223 virtual void character(int x, int y, int c);
star297 0:35a1964228b4 224
star297 0:35a1964228b4 225 /** paint a bitmap on the TFT
star297 0:35a1964228b4 226 *
star297 0:35a1964228b4 227 * @param x,y : upper left corner
star297 0:35a1964228b4 228 * @param w width of bitmap
star297 0:35a1964228b4 229 * @param h high of bitmap
star297 0:35a1964228b4 230 * @param *bitmap pointer to the bitmap data
star297 0:35a1964228b4 231 *
star297 0:35a1964228b4 232 * bitmap format: 16 bit R5 G6 B5
star297 0:35a1964228b4 233 *
star297 0:35a1964228b4 234 * use Gimp to create / load , save as BMP, option 16 bit R5 G6 B5
star297 0:35a1964228b4 235 * use winhex to load this file and mark data stating at offset 0x46 to end
star297 0:35a1964228b4 236 * use edit -> copy block -> C Source to export C array
star297 0:35a1964228b4 237 * paste this array into your program
star297 0:35a1964228b4 238 *
star297 0:35a1964228b4 239 * define the array as static const unsigned char to put it into flash memory
star297 0:35a1964228b4 240 * cast the pointer to (unsigned char *) :
star297 0:35a1964228b4 241 * tft.Bitmap(10,40,309,50,(unsigned char *)scala);
star297 0:35a1964228b4 242 */
star297 0:35a1964228b4 243 void Bitmap(unsigned int x, unsigned int y, unsigned int w, unsigned int h,unsigned char *bitmap);
star297 0:35a1964228b4 244
star297 0:35a1964228b4 245
star297 0:35a1964228b4 246 /** paint a 16 bit BMP from local filesytem on the TFT (slow)
star297 0:35a1964228b4 247 *
star297 0:35a1964228b4 248 * @param x,y : upper left corner
star297 0:35a1964228b4 249 * @param *Name_BMP name of the BMP file
star297 0:35a1964228b4 250 * @returns 1 if bmp file was found and painted
star297 0:35a1964228b4 251 * @returns -1 if bmp file was found not found
star297 0:35a1964228b4 252 * @returns -2 if bmp file is not 16bit
star297 0:35a1964228b4 253 * @returns -3 if bmp file is to big for screen
star297 0:35a1964228b4 254 * @returns -4 if buffer malloc go wrong
star297 0:35a1964228b4 255 *
star297 0:35a1964228b4 256 * bitmap format: 16 bit R5 G6 B5
star297 0:35a1964228b4 257 *
star297 0:35a1964228b4 258 * use Gimp to create / load , save as BMP, option 16 bit R5 G6 B5
star297 0:35a1964228b4 259 * copy to internal file system
star297 0:35a1964228b4 260 *
star297 0:35a1964228b4 261 */
star297 0:35a1964228b4 262
star297 0:35a1964228b4 263 int BMP_16(unsigned int x, unsigned int y, const char *Name_BMP);
star297 0:35a1964228b4 264
star297 0:35a1964228b4 265 /** Read an area from the LCD RAM to MCU RAM
star297 0:35a1964228b4 266 *
star297 0:35a1964228b4 267 * @param x,y : upper left corner
star297 0:35a1964228b4 268 * @param w width of bitmap
star297 0:35a1964228b4 269 * @param h high of bitmap
star297 0:35a1964228b4 270 * @param *buffer pointer to the buffer
star297 0:35a1964228b4 271 */
star297 0:35a1964228b4 272
star297 0:35a1964228b4 273 void read_area(unsigned int x, unsigned int y, unsigned int w, unsigned int h,unsigned char *buffer);
star297 0:35a1964228b4 274
star297 0:35a1964228b4 275 /** select the font to use
star297 0:35a1964228b4 276 *
star297 0:35a1964228b4 277 * @param f pointer to font array
star297 0:35a1964228b4 278 *
star297 0:35a1964228b4 279 * font array can created with GLCD Font Creator from http://www.mikroe.com
star297 0:35a1964228b4 280 * you have to add 4 parameter at the beginning of the font array to use:
star297 0:35a1964228b4 281 * - the number of byte / char
star297 0:35a1964228b4 282 * - the vertial size in pixel
star297 0:35a1964228b4 283 * - the horizontal size in pixel
star297 0:35a1964228b4 284 * - the number of byte per vertical line
star297 0:35a1964228b4 285 * you also have to change the array to char[]
star297 0:35a1964228b4 286 *
star297 0:35a1964228b4 287 */
star297 0:35a1964228b4 288 void set_font(unsigned char* f);
star297 0:35a1964228b4 289
star297 0:35a1964228b4 290 /** Set the orientation of the screen
star297 0:35a1964228b4 291 * x,y: 0,0 is always top left
star297 0:35a1964228b4 292 *
star297 0:35a1964228b4 293 * @param o direction to use the screen (0-3) 90&#65533; Steps
star297 0:35a1964228b4 294 *
star297 0:35a1964228b4 295 */
star297 0:35a1964228b4 296 void set_orientation(unsigned int o);
star297 0:35a1964228b4 297
star297 2:26149011665e 298 //SPI _spi;
star297 2:26149011665e 299 BurstSPI _spi;
star297 0:35a1964228b4 300 DigitalOut _cs;
star297 0:35a1964228b4 301 DigitalOut _rs;
star297 0:35a1964228b4 302 DigitalOut _reset;
star297 0:35a1964228b4 303 unsigned char* font;
star297 0:35a1964228b4 304
star297 0:35a1964228b4 305 protected:
star297 0:35a1964228b4 306
star297 0:35a1964228b4 307 /** draw a horizontal line
star297 0:35a1964228b4 308 *
star297 0:35a1964228b4 309 * @param x0 horizontal start
star297 0:35a1964228b4 310 * @param x1 horizontal stop
star297 0:35a1964228b4 311 * @param y vertical position
star297 0:35a1964228b4 312 * @param color 16 bit color
star297 0:35a1964228b4 313 *
star297 0:35a1964228b4 314 */
star297 0:35a1964228b4 315 void hline(int x0, int x1, int y, int colour);
star297 0:35a1964228b4 316
star297 0:35a1964228b4 317 /** draw a vertical line
star297 0:35a1964228b4 318 *
star297 0:35a1964228b4 319 * @param x horizontal position
star297 0:35a1964228b4 320 * @param y0 vertical start
star297 0:35a1964228b4 321 * @param y1 vertical stop
star297 0:35a1964228b4 322 * @param color 16 bit color
star297 0:35a1964228b4 323 */
star297 0:35a1964228b4 324 void vline(int y0, int y1, int x, int colour);
star297 0:35a1964228b4 325
star297 0:35a1964228b4 326 /** Set draw window region
star297 0:35a1964228b4 327 *
star297 0:35a1964228b4 328 * @param x horizontal position
star297 0:35a1964228b4 329 * @param y vertical position
star297 0:35a1964228b4 330 * @param w window width in pixel
star297 0:35a1964228b4 331 * @param h window height in pixels
star297 0:35a1964228b4 332 */
star297 0:35a1964228b4 333 void window (unsigned int x, unsigned int y, unsigned int w, unsigned int h);
star297 0:35a1964228b4 334
star297 0:35a1964228b4 335 /** Set draw window region to whole screen
star297 0:35a1964228b4 336 *
star297 0:35a1964228b4 337 */
star297 0:35a1964228b4 338 void WindowMax (void);
star297 0:35a1964228b4 339
star297 0:35a1964228b4 340 /** Init the ST7735 controller
star297 0:35a1964228b4 341 *
star297 0:35a1964228b4 342 */
star297 0:35a1964228b4 343 void tft_reset();
star297 0:35a1964228b4 344
star297 0:35a1964228b4 345 /** Write data to the LCD controller
star297 0:35a1964228b4 346 *
star297 0:35a1964228b4 347 * @param dat data written to LCD controller
star297 0:35a1964228b4 348 *
star297 0:35a1964228b4 349 */
star297 0:35a1964228b4 350 void wr_dat(int value);
star297 0:35a1964228b4 351
star297 0:35a1964228b4 352 /** Write a command the LCD controller
star297 0:35a1964228b4 353 *
star297 0:35a1964228b4 354 * @param cmd: command to be written
star297 0:35a1964228b4 355 *
star297 0:35a1964228b4 356 */
star297 0:35a1964228b4 357 void wr_cmd(int value);
star297 0:35a1964228b4 358
star297 0:35a1964228b4 359 /** Start data sequence to the LCD controller
star297 0:35a1964228b4 360 *
star297 0:35a1964228b4 361 */
star297 0:35a1964228b4 362 void wr_dat_start();
star297 0:35a1964228b4 363
star297 0:35a1964228b4 364 /** Stop of data writing to the LCD controller
star297 0:35a1964228b4 365 *
star297 0:35a1964228b4 366 */
star297 0:35a1964228b4 367 void wr_dat_stop();
star297 0:35a1964228b4 368
star297 0:35a1964228b4 369 /** write data to the LCD controller
star297 0:35a1964228b4 370 *
star297 0:35a1964228b4 371 * @param data to be written
star297 0:35a1964228b4 372 * *
star297 0:35a1964228b4 373 */
star297 0:35a1964228b4 374 void wr_dat_only(unsigned short dat);
star297 0:35a1964228b4 375
star297 0:35a1964228b4 376 /** Read data from the LCD controller
star297 0:35a1964228b4 377 *
star297 0:35a1964228b4 378 * @returns data from LCD controller
star297 0:35a1964228b4 379 *
star297 0:35a1964228b4 380 */
star297 0:35a1964228b4 381 unsigned short rd_dat(void);
star297 0:35a1964228b4 382
star297 0:35a1964228b4 383 /** Write a value to the to a LCD register
star297 0:35a1964228b4 384 *
star297 0:35a1964228b4 385 * @param reg register to be written
star297 0:35a1964228b4 386 * @param val data to be written
star297 0:35a1964228b4 387 */
star297 0:35a1964228b4 388 void wr_reg (unsigned char reg, unsigned short val);
star297 0:35a1964228b4 389
star297 0:35a1964228b4 390 /** Read a LCD register
star297 0:35a1964228b4 391 *
star297 0:35a1964228b4 392 * @param reg register to be read
star297 0:35a1964228b4 393 * @returns value of the register
star297 0:35a1964228b4 394 */
star297 0:35a1964228b4 395 unsigned short rd_reg (unsigned char reg);
star297 0:35a1964228b4 396
star297 0:35a1964228b4 397 unsigned int orientation;
star297 0:35a1964228b4 398 unsigned int char_x;
star297 0:35a1964228b4 399 unsigned int char_y;
star297 0:35a1964228b4 400 };
star297 0:35a1964228b4 401 #endif