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

Revision:
0:0b4018781642
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/splash_screen.h	Mon Aug 05 14:32:32 2013 +0000
@@ -0,0 +1,71 @@
+#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
\ No newline at end of file