cauqleuir madre
Dependencies: SDFileSystem mbed TFTLCD
Revision 38:7a646be3854c, committed 2013-02-02
- Comitter:
- Danton
- Date:
- Sat Feb 02 04:36:26 2013 +0000
- Parent:
- 37:836771aa9230
- Child:
- 39:52539bea375c
- Commit message:
- dont fixed version but nice debug
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Feb 02 04:25:32 2013 +0000 +++ b/main.cpp Sat Feb 02 04:36:26 2013 +0000 @@ -21,8 +21,13 @@ //fprintf(fp, "Hello fun SD Card World!\c\n"); //fread ( void * ptr, size_t size, size_t count, FILE * stream ); printf("offset at ssd %d\n",offset); - fseek(fp, offset,SEEK_SET); - fread((char*)buffer,offset,bytes,fp); + fseek(fp, offset,SEEK_CUR); + fread((char*)buffer,1,bytes,fp); + for(int i=0; i<bytes;i++) + { + printf("%x ",buffer[i]); + } + printf("\n"); fclose(fp); } @@ -92,7 +97,7 @@ pickUpLine(rawbytes,color,80,220,"/sd/mydir/rose.bmp",absPtr); drawLine(color,i); absPtr=absPtr+880; - printf("absptr %d\n", absPtr); + printf("absptr %d\n\n\n", absPtr); } printf("Goodbye World!\c\n");