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
Diff: main.cpp
- Revision:
- 5:069467469900
- Parent:
- 1:e5796aa9f1aa
- Child:
- 6:2646a55a0233
diff -r 96294c83e58f -r 069467469900 main.cpp --- a/main.cpp Mon Oct 22 05:01:34 2018 +0000 +++ b/main.cpp Wed Oct 24 02:23:42 2018 +0000 @@ -132,26 +132,30 @@ swPWMorOFF.IfCntState(ON); COM60HZ.period_ms(8); //add 20161108 - COM60HZ.write(0.5); //add 20161108 + COM60HZ.write(0.5); //add 20161108 BK.period_ms(1); //1ms cycle 20161012 BK.write(0); //low output 20160725 <- high output - while(1) + while(1) { //BITMAPS filenum = CntFile(filepath); //file number read - for(uint32_t i=0; i<filenum; i++) - { - ReadBmp(filepath,i); - while(HaltSW.State()) { // VCOM invert when image is still - // pol++; - // WD.command( (pol << 6) & 0x40 ); - // wait(bk_timer); //1Hz - } - HaltSW.Clear(); - //1bit trasfer mode = monochro diplay - WD.writeDISP(TrBIT1); - wait(2); + for( int j = 0; j < 2; j++) + { + ReadBmp(filepath,i); + while(HaltSW.State()) { // VCOM invert when image is still + // pol++; + // WD.command( (pol << 6) & 0x40 ); + // wait(bk_timer); //1Hz + } + HaltSW.Clear(); + //1bit trasfer mode = monochro diplay + if( j%2 == 0 ) + WD.writeDISP(TrBIT4); + else + WD.writeDISP(TrBIT1); + wait(2); + } } } }