Luke Cartwright / Mbed 2 deprecated ELEC2645_Project_el18loc_nearlythere

Dependencies:   mbed

Revision:
12:7a399a476cfd
Parent:
10:258a1eca02cc
Child:
14:9cfe0041cc4e
diff -r 6ae098535da9 -r 7a399a476cfd Startup/startup.cpp
--- a/Startup/startup.cpp	Thu May 07 12:22:39 2020 +0000
+++ b/Startup/startup.cpp	Fri May 08 20:08:36 2020 +0000
@@ -4,6 +4,55 @@
 //objects
 LUTs lut;
 
+const int CART_SYNTH_LOGO[48][84] =   {//sub 1
+{ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },
+{ 0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0 },  
+{ 0,0,0,1,0,0,0,0,1,1,1,1,1,0,0,1,1,1,1,1,0,0,0,0,1,0,0,0,0,1,1,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,1,1,0,0,0,0,1,0,0,0,0,1,1,1,1,1,0,0,1,1,1,1,1,0,0,0,0,1,0,0,0,0,1,1,1,0,0,0 },
+{ 0,0,0,1,0,0,0,0,1,1,1,1,1,0,0,1,1,1,1,1,0,0,0,0,1,0,0,0,0,1,1,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,1,1,0,0,0,0,1,0,0,0,0,1,1,1,1,1,0,0,1,1,1,1,1,0,0,0,0,1,0,0,0,0,1,1,1,0,0,0 },
+{ 0,0,0,1,0,0,0,0,1,1,1,1,1,0,0,1,1,1,1,1,0,0,0,0,1,0,0,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1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0 },
+{ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },
+};
 
 //constructor/destructor
 startup::startup()
@@ -23,11 +72,10 @@
     lcd.setContrast(0.5); //contrast setting
     lcd.inverseMode(); //puts screen in -ve
     //Prints CART SYNTH to display
-    lcd.printString("CART",12,2);
-    lcd.printString("SYNTH",32,3);
+    lcd.drawSprite(0,0,48,84,(int *)CART_SYNTH_LOGO);
     lcd.refresh();
     lut.initial_wavetables();
-    wait_ms(1000); //timer to allow theme to play out
+    wait_ms(3000); //timer to allow theme to play out
     lcd.clear();
     lcd.refresh(); //sets clear screen
 }