Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MIP8F_SPI_Ver60 MIP8f_FRDM_LineBuffer_sample MIP8f_FRDM_TransferMode_sample
Diff: main.cpp
- Revision:
- 18:81201ac909c6
- Parent:
- 17:b1f9a00145b8
- Child:
- 19:487e9b5ed392
diff -r b1f9a00145b8 -r 81201ac909c6 main.cpp --- a/main.cpp Wed Nov 21 07:30:33 2018 +0000 +++ b/main.cpp Thu Nov 22 06:49:36 2018 +0000 @@ -114,7 +114,7 @@ fscanf(fp, "%d",&height); //height read fscanf(fp, "%d",&blctrl_sel);//blct_sel read //0:40mA, 1:160mA //sprintf(filepath,"/sd/%dx%d",width,height); //DispAllDir("/sd/180x180") //file name write to filepath - sprintf(filepath,"/sd/backgrand%dx%d",width,height); //DispAllDir("/sd/180x180") //file name write to filepath + sprintf(filepath,"/sd/backgrand_logo%dx%d",width,height); //DispAllDir("/sd/180x180") //file name write to filepath sprintf(filepath2,"/sd/fish%dx%d",width,height); //DispAllDir("/sd/180x180") //file name write to filepath fclose(fp); } else { @@ -180,20 +180,20 @@ //color anime ReadBmp(filepath,i); WD.writeDISP(TrBIT3); - fish_swim_RightToLeft(80,10,2,TrBIT3); + fish_swim_RightToLeft(60,10,2,TrBIT3); fish_swim_TopToBottom(200,15,0,TrBIT3); fish_swim_BottomToTop(100,10,4,TrBIT3); - fish_Surprise_LeftToRight(120,30,2,6,TrBIT3); - fish_swim_RightToLeft(120,10,8,TrBIT3); + fish_Surprise_LeftToRight(80,30,2,6,TrBIT3); + fish_swim_RightToLeft(80,10,8,TrBIT3); }else{ //monochrome anime ReadBmp(filepath,i); WD.writeDISP(TrBIT1); - fish_swim_RightToLeft(80,10,2,TrBIT1); + fish_swim_RightToLeft(60,10,2,TrBIT1); fish_swim_TopToBottom(200,15,4,TrBIT1); fish_swim_BottomToTop(100,10,4,TrBIT1); - fish_Surprise_LeftToRight(120,30,2,6,TrBIT1); - fish_swim_RightToLeft(120,5,8,TrBIT1); + fish_Surprise_LeftToRight(80,30,2,6,TrBIT1); + fish_swim_RightToLeft(80,5,8,TrBIT1); } }