45 lines
643 B
C
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;
|
|
}
|
|
|