Simple splash screen (my name) on a 128*32 LCD using a bitmap image

Dependents:   Splash_Screen_program

Fork of splash_screen by Kevin De Koninck

splash_screen.h

Committer:
kevin_de_koninck
Date:
2013-08-05
Revision:
1:bd05276c609a
Parent:
0:0b4018781642

File content as of revision 1:bd05276c609a:

#ifndef splash_screen_H
#define splash_screen_H

#include "mbed.h"
#include "splash_graphics.h"
#include "C12832_lcd.h"




void splash_screen(C12832_LCD lcd)
{
    lcd.cls();
    //inschuiven naar rechts tot het midden
    for(int i = 0; i<21; i++) {//105
        lcd.print_bm(bitmKevin,-86+i*5,4);  // print Name
        lcd.copy_to_lcd();
        wait(0.022);
        lcd.cls();
    }

    //overshoot naar rechts
    for(int i = 0; i<5; i++) {
        lcd.print_bm(bitmKevin,19+i,4);  // print Name
        lcd.copy_to_lcd();
        wait(0.015);
        lcd.cls();
    }
    //overshoot naar links
    for(int i = 0; i<9; i++) {
        lcd.print_bm(bitmKevin,(19+5)-i,4);  // print Name
        lcd.copy_to_lcd();
        wait(0.015);
        lcd.cls();
    }
    //overshoot naar rechts
    for(int i = 0; i<7; i++) {
        lcd.print_bm(bitmKevin,(19-4)+i,4);  // print Name
        lcd.copy_to_lcd();
        wait(0.015);
        lcd.cls();
    }
    //overshoot naar links
    for(int i = 0; i<5; i++) {
        lcd.print_bm(bitmKevin,(19+3)-i,4);  // print Name
        lcd.copy_to_lcd();
        wait(0.015);
        lcd.cls();
    }
    //overshoot naar rechts
    for(int i = 0; i<2; i++) {
        lcd.print_bm(bitmKevin,(19-2)+i,4);  // print Name
        lcd.copy_to_lcd();
        wait(0.015);
        lcd.cls();
    }
    //overshoot naar links
    lcd.print_bm(bitmKevin,(19+1),4);  // print Name
    lcd.copy_to_lcd();
    wait(0.015);
    lcd.cls();


    lcd.print_bm(bitmKevin,19,4);
    lcd.copy_to_lcd();
}




#endif