Files
smartbooks/103ze/mycode/c.c
T
无闻风 04b4a6fd02 移植了LCD屏幕,FLASH字库
字库还有偏移问题未解决

Signed-off-by: 无闻风 <53944749+wuwenfengmi1998@users.noreply.github.com>
2021-03-11 22:33:36 +08:00

45 lines
643 B
C

/*
* c.c
*
* Created on: Mar 11, 2021
* Author: 13370
*/
#include "c.h"
#include "lcd.h"
#include "text.h"
#include "fatfs.h"
#include "fatfs_sd.h"
FATFS SD;
int my_main()
{
uint8_t res;
FIL fil;
char fil_buff[64];
uint16_t br=0;
char str[16];
LCD_BL(0);
LCDx_Init();
if(font_init())
{
LCD_ShowString(0,16,(uint8_t *)"erro",16,RED,BLUE);
}
LCD_Clear(GRAY);
/*
f_mount(&SD,"0:",1);
res=f_open(&fil,"0:/demo.txt",FA_READ);
res=f_read(&fil,fil_buff,16,(UINT*)&br);
sprintf(str,"%s\0\0",fil_buff);
LCD_ShowString(0,0,str,16,RED,BLUE);
*/
LCD_ShowString(0,0,"123dsjvn°¡",12,RED,BLUE);
while(1)
{
}
return 0;
}