⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 display.h

📁 A few drivers for the Motorola C380 s celluar phone hardware with a simple test application. It s co
💻 H
字号:
#ifndef DISPLAY_DRV_H
#define DISPLAY_DRV_H

#include "../libs/motolibs.h"

#define DISPLAY_XDIM 130
#define DISPLAY_YDIM 130

//TODO:
/* Check if display controller is busy. (Not yet finished) */
bool display_check_busy(void);

/* Wait for display controller to finish processing the current command.
 * Depends on display_check_busy which isn't finished */
void display_wait(void);

/* Switch shape filling on and off */
void display_set_fill_mode(bool fill);

/* Draw a line */
void display_draw_line(byte x1, byte y1, byte x2, byte y2, hword color);

/* Draw a rectangle */
void display_rectangle(byte x1, byte y1, byte x2, byte y2, hword brdcolor, hword fillcolor);

/* Draw a circle */
void display_circle(byte x, byte y, byte r, hword brdcolor, hword fillcolor);

/* Copy a rectangular area (x1;y1)-(x2;y2) to (x3;y3) */
void display_copy(byte x1, byte y1, byte x2, byte y2, byte x3, byte y3);

/* Put a bitmap image to the display */
void display_put_image(byte x1, byte y1, byte x2, byte y2, byte * image);

/* Initialize the display and the display driver */
void display_init(void);

/* Shutdown the display */
void display_shutdown(void);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -