由于不明原因Flash字库的头索引乱了,导致一直无法定位,重新计算了位置。
给show str函数加入长度限制。 Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
+2
-2
@@ -14,7 +14,7 @@
|
||||
//前面4M被fatfs占用了.
|
||||
//4M以后紧跟3个字库+UNIGBK.BIN,总大小3.09M,被字库占用了,不能动!
|
||||
//5.10M以后,用户可以自由使用.建议用最后的100K字节比较好.
|
||||
__packed typedef struct
|
||||
typedef struct
|
||||
{
|
||||
uint8_t fontok; //字库存在标志,0XAA,字库正常;其他,字库不存在
|
||||
uint32_t ugbkaddr; //unigbk的地址
|
||||
@@ -32,6 +32,6 @@ extern _font_info ftinfo;
|
||||
uint8_t font_init(void);
|
||||
void Show_Font(uint16_t x,uint16_t y,uint8_t *font,uint8_t size,uint16_t bg,uint16_t color);
|
||||
void LCD_ShowChar(uint16_t x,uint16_t y,uint8_t num,uint8_t size,uint16_t bg,uint16_t color);
|
||||
void LCD_ShowString(uint16_t x,uint16_t y,uint8_t *p,uint8_t size,uint16_t bg,uint16_t color);
|
||||
void LCD_ShowString(uint16_t x,uint16_t y,uint8_t *p,uint8_t size,uint16_t bg,uint16_t color,uint16_t len);
|
||||
|
||||
#endif /* TEXT_H_ */
|
||||
|
||||
Reference in New Issue
Block a user