HPM FEMC LCD8080 sample API ;HPM FEMC LCD8080例程接口
More...
|
| static void | lcd_open_window (uint16_t x, uint16_t y, uint16_t width, uint16_t height) |
| | Set the LCD window range ;设置LCD窗口范围 More...
|
| |
| void | lcd_draw_point (uint16_t x, uint16_t y, uint16_t color) |
| | Draw a point ;绘画一个点 More...
|
| |
| 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 ;绘画一条线 More...
|
| |
| 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 ;绘画矩形 More...
|
| |
| void | lcd_draw_circle (uint16_t x, uint16_t y, uint16_t radius, uint16_t color) |
| | Draw circle ;绘画圆形 More...
|
| |
| void | lcd_fill_rectangle (uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t color) |
| | Fill rectangle ;填充矩形 More...
|
| |
| void | lcd_fill_screen (uint16_t color) |
| | Fill the entire screen ;填充整个屏幕 More...
|
| |
HPM FEMC LCD8080 sample API ;HPM FEMC LCD8080例程接口
◆ API_VERSION
| #define API_VERSION "V0.1.0" |
◆ lcd_draw_circle()
| void lcd_draw_circle |
( |
uint16_t |
x, |
|
|
uint16_t |
y, |
|
|
uint16_t |
radius, |
|
|
uint16_t |
color |
|
) |
| |
◆ lcd_draw_line()
| void lcd_draw_line |
( |
uint16_t |
start_x, |
|
|
uint16_t |
start_y, |
|
|
uint16_t |
end_x, |
|
|
uint16_t |
end_y, |
|
|
uint16_t |
color |
|
) |
| |
#include <apps/femc_8080lcd/software/src/lcd8080.h>
Draw a line ;绘画一条线
- Parameters
-
| [in] | start_x | X Origin coordinate ;X起点坐标 |
| [in] | start_y | Y Origin coordinate ;Y起点坐标 |
| [in] | end_x | Y Terminal coordinate ;X终点坐标 |
| [in] | end_y | Y Terminal coordinate ;Y终点坐标 |
| [in] | color | Color setting;颜色设置 |
◆ lcd_draw_point()
| void lcd_draw_point |
( |
uint16_t |
x, |
|
|
uint16_t |
y, |
|
|
uint16_t |
color |
|
) |
| |
◆ lcd_draw_rectangle()
| void lcd_draw_rectangle |
( |
uint16_t |
start_x, |
|
|
uint16_t |
start_y, |
|
|
uint16_t |
end_x, |
|
|
uint16_t |
end_y, |
|
|
uint16_t |
color |
|
) |
| |
#include <apps/femc_8080lcd/software/src/lcd8080.h>
Draw rectangle ;绘画矩形
- Parameters
-
| [in] | start_x | X Origin coordinate ;X起点坐标 |
| [in] | start_y | Y Origin coordinate ;Y起点坐标 |
| [in] | end_x | Y Terminal coordinate ;X终点坐标 |
| [in] | end_y | Y Terminal coordinate ;Y终点坐标 |
| [in] | color | Color setting;颜色设置 |
◆ lcd_fill_rectangle()
| void lcd_fill_rectangle |
( |
uint16_t |
x0, |
|
|
uint16_t |
y0, |
|
|
uint16_t |
x1, |
|
|
uint16_t |
y1, |
|
|
uint16_t |
color |
|
) |
| |
#include <apps/femc_8080lcd/software/src/lcd8080.h>
Fill rectangle ;填充矩形
- Parameters
-
| [in] | x0 | X Origin coordinate ;X起点坐标 |
| [in] | y0 | Y Origin coordinate ;Y起点坐标 |
| [in] | x1 | Width of window ;窗口长度 |
| [in] | y1 | Height of window ;窗口宽度 |
| [in] | color | Color setting;颜色设置 |
◆ lcd_fill_screen()
| void lcd_fill_screen |
( |
uint16_t |
color | ) |
|
◆ lcd_open_window()
| static void lcd_open_window |
( |
uint16_t |
x, |
|
|
uint16_t |
y, |
|
|
uint16_t |
width, |
|
|
uint16_t |
height |
|
) |
| |
|
static |
#include <apps/femc_8080lcd/software/src/lcd8080.h>
Set the LCD window range ;设置LCD窗口范围
- Parameters
-
| [in] | x | X Origin coordinate ;X起点坐标 |
| [in] | y | Y Origin coordinate ;Y起点坐标 |
| [in] | width | Width of window ;窗口长度 |
| [in] | height | Height of window ;窗口宽度 |