// // ST7735S on ESP-WROOM-02 // Sep.7, 2017 // xkozima@tohoku.ac.jp #include #include "font6x8.h" // LCD 初期化 void LCDinit(); // 画面クリア(0: 黒,0xffff: 白, etc.) void LCDclear(int color); // 点を描画 void LCDpoint(int x, int y, int color); // 線を描画 void LCDline(int x1, int y1, int x2, int y2, int color); // 長方形を描画((fill)? 塗りつぶし: 輪郭のみ) void LCDrect(int x, int y, int w, int h, int color, int fill); // 円を描画((fill)? 塗りつぶし: 輪郭のみ) void LCDcircle(int x, int y, int r, int color, int fill); // 楕円を描画(rx/ry: 半径,(fill)? 塗りつぶし: 輪郭のみ) void LCDellipse(int x, int y, int rx, int ry, int color, int fill); // 画像を描画(16bit(RGB565) or 24bit) void LCDimage(int x, int y, int w, int h, int *image16); void LCDimage(int x, int y, int w, int h, const int *image16); void LCDimage(int x, int y, int w, int h, unsigned char *image24); void LCDimage(int x, int y, int w, int h, const unsigned char *image24); // ASCII 文字列を描画 void LCDtext(int x, int y, char *string, int color); // ASCII 文字列を描画(背景色も指定) void LCDtext(int x, int y, char *string, int colorF, int colorB); // 16bit(RGB565) 色情報を 24bit 色情報から生成 int LCDcolor(int r, int g, int b);