删除测温ADC,更改加热引脚与状态跟初始电平,优化屏幕显示函数,增加 用UFT8转GBK的Python脚本,测试有效,实际使用待完善
This commit is contained in:
@@ -16,6 +16,11 @@ extern "C" {
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/* 颜色使用统一的标志 */
|
||||
#define TEXT_COLOR 15 /* 白色 */
|
||||
#define BG_COLOR 0 /* 黑色 */
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @brief 发送原始命令字符串到屏幕(阻塞直到发送完成)
|
||||
@@ -24,6 +29,7 @@ extern "C" {
|
||||
*/
|
||||
int Screen_SendCmd(const char *cmd);
|
||||
|
||||
void Screen_Init(void);
|
||||
|
||||
/* 常用封装 - 简短说明见各函数 */
|
||||
/** 清屏,layer: 要清除的层号(通常为0) */
|
||||
@@ -47,7 +53,7 @@ void Screen_BoxFill(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint8_t
|
||||
void Screen_Circle(uint16_t x, uint16_t y, uint16_t r, uint8_t color);
|
||||
void Screen_CircleFill(uint16_t x, uint16_t y, uint16_t r, uint8_t color);
|
||||
void Screen_SetBGColor(uint8_t color);
|
||||
|
||||
void Screen_DrawText16V_GBK(uint16_t x, uint16_t y, const uint8_t *gbk_buf, uint16_t gbk_len, uint8_t color);
|
||||
/* 带/不带背景的文本 */
|
||||
void Screen_DrawText16V(uint16_t x, uint16_t y, const char *text, uint8_t color);
|
||||
void Screen_DrawText24(uint16_t x, uint16_t y, const char *text, uint8_t color);
|
||||
@@ -66,6 +72,19 @@ void Screen_QRCodeEx(uint16_t x, uint16_t y, const char *url, uint16_t size, uin
|
||||
/* 版本信息 */
|
||||
void Screen_Ver(void);
|
||||
|
||||
// GBK
|
||||
void Screen_DrawText16_GBK(uint16_t x,uint16_t y,const uint8_t *gbk,uint16_t len,uint8_t color);
|
||||
void Screen_DrawText16V_GBK(uint16_t x,uint16_t y,const uint8_t *gbk,uint16_t len,uint8_t color);
|
||||
|
||||
void Screen_DrawText24_GBK(uint16_t x,uint16_t y,const uint8_t *gbk,uint16_t len,uint8_t color);
|
||||
void Screen_DrawText24V_GBK(uint16_t x,uint16_t y,const uint8_t *gbk,uint16_t len,uint8_t color);
|
||||
|
||||
void Screen_DrawText32_GBK(uint16_t x,uint16_t y,const uint8_t *gbk,uint16_t len,uint8_t color);
|
||||
void Screen_DrawText32V_GBK(uint16_t x,uint16_t y,const uint8_t *gbk,uint16_t len,uint8_t color);
|
||||
|
||||
void Screen_DrawText48_GBK(uint16_t x,uint16_t y,const uint8_t *gbk,uint16_t len,uint8_t color,uint8_t transparent);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user