PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)
Dependents: YATTT sd_map_test cPong SnowDemo ... more
PokittoLib
Library for programming Pokitto hardware
How to Use
- Import this library to online compiler (see button "import" on the right hand side
- DO NOT import mbed-src anymore, a better version is now included inside PokittoLib
- Change My_settings.h according to your project
- Start coding!
Diff: POKITTO_LIBS/ImageFormat/defines_linux_SIM.h
- Revision:
- 23:f88837b8f914
- Child:
- 58:5f58a2846a20
diff -r e826f80d8582 -r f88837b8f914 POKITTO_LIBS/ImageFormat/defines_linux_SIM.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/POKITTO_LIBS/ImageFormat/defines_linux_SIM.h Fri Dec 29 05:17:10 2017 +0000 @@ -0,0 +1,60 @@ +#include <stdio.h> +#include <ctype.h> +#include <stdlib.h> +#include <string.h> +#include <stdint.h> +#include "helpers.h" + +#define _MAX_DRIVE 3 +#define _MAX_DIR 256 +#define _MAX_FNAME 256 +#define _MAX_EXT 256 + +#include <ctype.h> + +char* _strupr( char* s ) + { + char* p = s; + while (*p = toupper( *p )) p++; + return s; + } + +typedef struct tagRGBQUAD { + uint8_t rgbBlue; + uint8_t rgbGreen; + uint8_t rgbRed; + uint8_t rgbReserved; +} RGBQUAD; + +typedef struct tagBITMAPFILEHEADER { + int16_t bfType; + int32_t bfSize; + int16_t bfReserved1; + int16_t bfReserved2; + int32_t bfOffBits; +} __attribute__((packed)) BITMAPFILEHEADER, *PBITMAPFILEHEADER; + +#define BI_RLE4 2 +typedef struct tagBITMAPINFOHEADER { + int32_t biSize; + int32_t biWidth; + int32_t biHeight; + int16_t biPlanes; + int16_t biBitCount; + int32_t biCompression; + int32_t biSizeImage; + int32_t biXPelsPerMeter; + int32_t biYPelsPerMeter; + int32_t biClrUsed; + int32_t biClrImportant; +} __attribute__((packed)) BITMAPINFOHEADER, *PBITMAPINFOHEADER; + +typedef struct tagBITMAPINFO { + BITMAPINFOHEADER bmiHeader; + RGBQUAD bmiColors[1]; +} __attribute__((packed)) BITMAPINFO, *PBITMAPINFO; + +RGBQUAD myColors[257]; + + +