#include "filesystem/ff.h" #include #include "usetable.h" #define MAXSIZE 1024 //shows vcards void ram(void) { char filename[13]; uint8_t buf[MAXSIZE]; FRESULT res; UINT readbytes; FIL file; uint8_t key; int i,j=0,lines=0; char *beginline=buf; char help; selectFile(filename,"CRD"); lcdClear(); res=f_open(&file, (const char*)filename, FA_OPEN_EXISTING|FA_READ); res=f_read(&file, (char *)buf, MAXSIZE, &readbytes); for(i=0;i13) { help=buf[i]; j=0; buf[i]=0; lcdPrintln(beginline); beginline=&buf[i]; buf[i]=help; lines++; } j++; } lcdRefresh(); while (1) { key = getInput(); if( key == BTN_LEFT ){ break; } } }