移植了LCD屏幕,FLASH字库
字库还有偏移问题未解决 Signed-off-by: 无闻风 <53944749+wuwenfengmi1998@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user