SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
Macros | Functions
lcd.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <types.h>
Include dependency graph for lcd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LCD_W   240
 
#define LCD_H   240
 
#define WHITE   0xFFFF
 
#define BLACK   0x0000
 
#define BLUE   0x001F
 
#define BRED   0XF81F
 
#define GRED   0XFFE0
 
#define GBLUE   0X07FF
 
#define RED   0xF800
 
#define MAGENTA   0xF81F
 
#define GREEN   0x07E0
 
#define CYAN   0x7FFF
 
#define YELLOW   0xFFE0
 
#define BROWN   0XBC40
 
#define BRRED   0XFC07
 
#define GRAY   0X8430
 
#define DARKBLUE   0X01CF
 
#define LIGHTBLUE   0X7D7C
 
#define GRAYBLUE   0X5458
 
#define LIGHTGREEN   0X841F
 
#define LGRAY   0XC618
 
#define LGRAYBLUE   0XA651
 
#define LBBLUE   0X2B12
 

Functions

void LCD_Fill (uint16_t xsta, uint16_t ysta, uint16_t xend, uint16_t yend, uint16_t color)
 函数说明:在指定区域填充颜色 入口数据:xsta,ysta 起始坐标 xend,yend 终止坐标 color 要填充的颜色 返回值: 无
 
void LCD_DrawPoint (uint16_t x, uint16_t y, uint16_t color)
 函数说明:在指定位置画点 入口数据:x,y 画点坐标 color 点的颜色 返回值: 无
 
void LCD_DrawLine (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
 函数说明:画线 入口数据:x1,y1 起始坐标 x2,y2 终止坐标 color 线的颜色 返回值: 无
 
void LCD_DrawRectangle (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
 函数说明:画矩形 入口数据:x1,y1 起始坐标 x2,y2 终止坐标 color 矩形的颜色 返回值: 无
 
void Draw_Circle (uint16_t x0, uint16_t y0, uint8_t r, uint16_t color)
 函数说明:画圆 入口数据:x0,y0 圆心坐标 r 半径 color 圆的颜色 返回值: 无
 
void LCD_ShowChar (uint16_t x, uint16_t y, uint8_t num, uint16_t fc, uint16_t bc, uint8_t sizey, uint8_t mode)
 函数说明:显示单个字符 入口数据:x,y显示坐标 num 要显示的字符 fc 字的颜色 bc 字的背景色 sizey 字号 mode: 0非叠加模式 1叠加模式 返回值: 无
 
void LCD_ShowString (uint16_t x, uint16_t y, const uint8_t *p, uint16_t fc, uint16_t bc, uint8_t sizey, uint8_t mode)
 函数说明:显示字符串 入口数据:x,y显示坐标 p 要显示的字符串 fc 字的颜色 bc 字的背景色 sizey 字号 mode: 0非叠加模式 1叠加模式 返回值: 无
 
u32 mypow (uint8_t m, uint8_t n)
 函数说明:显示数字 入口数据:m底数,n指数 返回值: 无
 
void LCD_ShowIntNum (uint16_t x, uint16_t y, uint16_t num, uint8_t len, uint16_t fc, uint16_t bc, uint8_t sizey)
 函数说明:显示整数变量 入口数据:x,y显示坐标 num 要显示整数变量 len 要显示的位数 fc 字的颜色 bc 字的背景色 sizey 字号 返回值: 无
 
void LCD_ShowPicture (uint16_t x, uint16_t y, uint16_t length, uint16_t width, const uint8_t pic[])
 

Macro Definition Documentation

◆ BLACK

#define BLACK   0x0000

◆ BLUE

#define BLUE   0x001F

◆ BRED

#define BRED   0XF81F

◆ BROWN

#define BROWN   0XBC40

◆ BRRED

#define BRRED   0XFC07

◆ CYAN

#define CYAN   0x7FFF

◆ DARKBLUE

#define DARKBLUE   0X01CF

◆ GBLUE

#define GBLUE   0X07FF

◆ GRAY

#define GRAY   0X8430

◆ GRAYBLUE

#define GRAYBLUE   0X5458

◆ GRED

#define GRED   0XFFE0

◆ GREEN

#define GREEN   0x07E0

◆ LBBLUE

#define LBBLUE   0X2B12

◆ LCD_H

#define LCD_H   240

◆ LCD_W

#define LCD_W   240

◆ LGRAY

#define LGRAY   0XC618

◆ LGRAYBLUE

#define LGRAYBLUE   0XA651

◆ LIGHTBLUE

#define LIGHTBLUE   0X7D7C

◆ LIGHTGREEN

#define LIGHTGREEN   0X841F

◆ MAGENTA

#define MAGENTA   0xF81F

◆ RED

#define RED   0xF800

◆ WHITE

#define WHITE   0xFFFF

◆ YELLOW

#define YELLOW   0xFFE0

Function Documentation

◆ Draw_Circle()

void Draw_Circle ( uint16_t  x0,
uint16_t  y0,
uint8_t  r,
uint16_t  color 
)

函数说明:画圆 入口数据:x0,y0 圆心坐标 r 半径 color 圆的颜色 返回值: 无

◆ LCD_DrawLine()

void LCD_DrawLine ( uint16_t  x1,
uint16_t  y1,
uint16_t  x2,
uint16_t  y2,
uint16_t  color 
)

函数说明:画线 入口数据:x1,y1 起始坐标 x2,y2 终止坐标 color 线的颜色 返回值: 无

◆ LCD_DrawPoint()

void LCD_DrawPoint ( uint16_t  x,
uint16_t  y,
uint16_t  color 
)

函数说明:在指定位置画点 入口数据:x,y 画点坐标 color 点的颜色 返回值: 无

◆ LCD_DrawRectangle()

void LCD_DrawRectangle ( uint16_t  x1,
uint16_t  y1,
uint16_t  x2,
uint16_t  y2,
uint16_t  color 
)

函数说明:画矩形 入口数据:x1,y1 起始坐标 x2,y2 终止坐标 color 矩形的颜色 返回值: 无

◆ LCD_Fill()

void LCD_Fill ( uint16_t  xsta,
uint16_t  ysta,
uint16_t  xend,
uint16_t  yend,
uint16_t  color 
)

函数说明:在指定区域填充颜色 入口数据:xsta,ysta 起始坐标 xend,yend 终止坐标 color 要填充的颜色 返回值: 无

◆ LCD_ShowChar()

void LCD_ShowChar ( uint16_t  x,
uint16_t  y,
uint8_t  num,
uint16_t  fc,
uint16_t  bc,
uint8_t  sizey,
uint8_t  mode 
)

函数说明:显示单个字符 入口数据:x,y显示坐标 num 要显示的字符 fc 字的颜色 bc 字的背景色 sizey 字号 mode: 0非叠加模式 1叠加模式 返回值: 无

◆ LCD_ShowIntNum()

void LCD_ShowIntNum ( uint16_t  x,
uint16_t  y,
uint16_t  num,
uint8_t  len,
uint16_t  fc,
uint16_t  bc,
uint8_t  sizey 
)

函数说明:显示整数变量 入口数据:x,y显示坐标 num 要显示整数变量 len 要显示的位数 fc 字的颜色 bc 字的背景色 sizey 字号 返回值: 无

◆ LCD_ShowPicture()

void LCD_ShowPicture ( uint16_t  x,
uint16_t  y,
uint16_t  length,
uint16_t  width,
const uint8_t  pic[] 
)

◆ LCD_ShowString()

void LCD_ShowString ( uint16_t  x,
uint16_t  y,
const uint8_t p,
uint16_t  fc,
uint16_t  bc,
uint8_t  sizey,
uint8_t  mode 
)

函数说明:显示字符串 入口数据:x,y显示坐标 p 要显示的字符串 fc 字的颜色 bc 字的背景色 sizey 字号 mode: 0非叠加模式 1叠加模式 返回值: 无

◆ mypow()

u32 mypow ( uint8_t  m,
uint8_t  n 
)

函数说明:显示数字 入口数据:m底数,n指数 返回值: 无