HPM APP
HPMicro Application solution
lcd8080.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023 HPMicro
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef LCD8080_H
9 #define LCD8080_H
10 
11 
12 
21 /***********************************************************************************************************************
22  *
23  * Definitions
24  *
25  **********************************************************************************************************************/
26 #define API_VERSION "V0.1.0"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 
43 static void lcd_open_window(uint16_t x, uint16_t y, uint16_t width, uint16_t height);
44 
45 
55 void lcd_draw_point(uint16_t x, uint16_t y, uint16_t color);
56 
57 
58 
70 void lcd_draw_line(uint16_t start_x, uint16_t start_y, uint16_t end_x, uint16_t end_y, uint16_t color);
71 
72 
73 
85 void lcd_draw_rectangle(uint16_t start_x, uint16_t start_y, uint16_t end_x, uint16_t end_y, uint16_t color);
86 
87 
88 
89 
100 void lcd_draw_circle(uint16_t x, uint16_t y, uint16_t radius, uint16_t color);
101 
102 
103 
104 
116 void lcd_fill_rectangle(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t color);
117 
118 
126 void lcd_fill_screen(uint16_t color);
127 
128 
129 
135 #ifdef __cplusplus
136 }
137 #endif
138 
139 #endif
void lcd_draw_line(uint16_t start_x, uint16_t start_y, uint16_t end_x, uint16_t end_y, uint16_t color)
Draw a line ;绘画一条线
Definition: lcd8080.c:63
void lcd_draw_circle(uint16_t x, uint16_t y, uint16_t radius, uint16_t color)
Draw circle ;绘画圆形
Definition: lcd8080.c:128
void lcd_fill_rectangle(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t color)
Fill rectangle ;填充矩形
Definition: lcd8080.c:160
void lcd_draw_point(uint16_t x, uint16_t y, uint16_t color)
Draw a point ;绘画一个点
Definition: lcd8080.c:55
void lcd_fill_screen(uint16_t color)
Fill the entire screen ;填充整个屏幕
Definition: lcd8080.c:175
void lcd_draw_rectangle(uint16_t start_x, uint16_t start_y, uint16_t end_x, uint16_t end_y, uint16_t color)
Draw rectangle ;绘画矩形
Definition: lcd8080.c:110
static void lcd_open_window(uint16_t x, uint16_t y, uint16_t width, uint16_t height)
Set the LCD window range ;设置LCD窗口范围