#include "tools.h" #define SCREEN_SIZE SCREEN_WIDTH*SCREEN_HEIGHT/2 #define CONTRAST_MIN 0x60 #define CONTRAST_MAX 0xC0 unsigned int getContrast(); void setContrast(unsigned int val); void drwStr(int x, int y, char* str, int ret); void putChar(int x, int y, char ch); void setPixel(int x, int y, unsigned int color); void dispIMG(int xoff, int yoff, char* img, int width, int height, float inc); void clrScr(); void drwBufStr(unsigned char* buf, int x, int y, char* str, int ret); void putBufChar(unsigned char* buf, int x, int y, char ch); void setBufPixel(unsigned char* buf, int x, int y, unsigned int color); void dispBufIMG(unsigned char* buf, int xoff, int yoff, char* img, int width, int height, float inc); void clrScr(); void clrBuf(); void refreshScr(unsigned char* buf); void clrBox(int x,int y, int w, int h); void switchRGB(int b); //int getPixel(int x, int y); //void drawLine(unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2, unsigned int color) void drwVert(int x, int y1, int y2, int color); void drwHoriz(int y, int x1, int x2, int color); void drwFullHoriz(int y); void drwBox(int x1, int y1, int x2, int y2, int color);