Animation demo with MIP8F_SPI_Ver60

Dependencies:   mbed MIP8F_SPI_Ver60 MIP8f_FRDM_LineBuffer_sample MIP8f_FRDM_TransferMode_sample

Introduction

Animation Demo. Some Goldfish swin in water, from left to right, from bottom to top. Color and monochrome version

Only for LPM027M128x (400x240) ,JDI DIsplay.

Other information , please refer to https://os.mbed.com/teams/JapanDisplayInc/code/MIP8f_FRDM_sample/

Usage

Copy Setting File and Image to micro SD-CARD. you can NOT use same sample color images of OTHER VERSION SAMPLE.

a) Download the following file corresponding to the target panel, and rename file identifier (.bin -> .zip), and unzip the file on micro SD Card's root directory.

LPM027M128x (400x240) :/media/uploads/JDI_Mbed_Team/goldfish_400x240.bin

b) Insert micro SD-CARD to FRDM-K64F. c) Upload binary file to FRDM-K64F.and push Reset Button.

Other information

refer to Usage on https://os.mbed.com/teams/JapanDisplayInc/code/MIP8f_FRDM_sample/

this Sample Code (.bin)

/media/uploads/JDI_Mbed_Team/mip8f_frdm_animation_sample.k64f.bin

Revision:
18:81201ac909c6
Parent:
17:b1f9a00145b8
Child:
19:487e9b5ed392
--- 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);
 			}
 		}