Pete Correia / Mbed 2 deprecated XivelyLogo

Dependencies:   C12832_lcd mbed

Files at this revision

API Documentation at this revision

Comitter:
petecorreia
Date:
Fri Aug 23 16:44:52 2013 +0000
Commit message:
First commit

Changed in this revision

C12832_lcd.lib Show annotated file Show diff for this revision Revisions of this file
graphics.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r f8dafb5a1431 C12832_lcd.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/C12832_lcd.lib	Fri Aug 23 16:44:52 2013 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/dreschpe/code/C12832_lcd/#c9afe58d786a
diff -r 000000000000 -r f8dafb5a1431 graphics.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics.h	Fri Aug 23 16:44:52 2013 +0000
@@ -0,0 +1,37 @@
+#ifndef graphics_H
+#define graphics_H
+#include "C12832_lcd.h"
+
+static char Logo[] = {
+0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
+0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1c, 0x0, 0x0, 0x0, 0x0, 0xe0, 0x0, 0x0, 
+0x0, 0x0, 0x3e, 0x0, 0x0, 0x0, 0x0, 0xf0, 0x0, 0x0, 0x0, 0x0, 0x3e, 0x0, 0x0, 
+0x0, 0x0, 0xf0, 0x0, 0x0, 0x0, 0x0, 0x1c, 0x0, 0x0, 0x0, 0x0, 0xf0, 0x0, 0x0, 
+0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
+0x0, 0x0, 0xf0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x0, 0xf, 0xc0, 0xf0, 0x0, 0x0, 
+0x1e, 0x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x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0xf8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
+0x0, 0x0, 0x1, 0xf8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0xf0, 0x0, 
+0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
+0x0, 0x0, 0x0, 0x0, 0x0
+};
+
+Bitmap bitmLogo = {
+  80, // XSize
+  32, // YSize
+  10, // Bytes in Line
+  Logo,  // Pointer to picture data 
+};
+
+#endif
\ No newline at end of file
diff -r 000000000000 -r f8dafb5a1431 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Aug 23 16:44:52 2013 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+#include "C12832_lcd.h"
+#include "graphics.h"
+
+C12832_LCD lcd;
+
+int main() {
+    
+    int i;
+    lcd.cls();
+    lcd.print_bm(bitmLogo,24,0);
+    lcd.copy_to_lcd(); 
+    
+    while(1) {
+    
+        for(i = -32; i < 32; i++){ 
+            lcd.cls();
+            lcd.print_bm(bitmLogo,24,i);
+            lcd.copy_to_lcd(); 
+            wait(0.1);
+        }
+    }
+}
diff -r 000000000000 -r f8dafb5a1431 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Aug 23 16:44:52 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9c8f0e3462fb
\ No newline at end of file