PB / Mbed 2 deprecated DOGL128Test

Dependencies:   DOGL128 mbed

Files at this revision

API Documentation at this revision

Comitter:
Sateg
Date:
Sat Jul 16 22:47:03 2016 +0000
Child:
1:2475aa7aa52b
Commit message:
Simple test program showcasing various features.

Changed in this revision

DOGL128.lib 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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DOGL128.lib	Sat Jul 16 22:47:03 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/teams/PB/code/DOGL128/#ec5db47782a3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Jul 16 22:47:03 2016 +0000
@@ -0,0 +1,34 @@
+#include "mbed.h"
+#include "DOGL128.h"
+
+DigitalOut myled(LED1);
+DOGL128 LCD;
+
+int main() {
+    printf("Hello\n");
+    LCD.cls();
+    LCD.set_auto_up(0);
+    LCD.invert(0);
+    int i = 2;
+    
+    while(1) {
+        myled = !myled;
+        LCD.cls();
+        LCD.line(0, 0, 128, 64, 1);
+        LCD.line(0, 64, 128, 0, 1);
+        LCD.circle(64, 32, i, 1);
+        LCD.locate(0,0);
+        LCD.printf("Radius: ");
+        LCD.fillrect(32, 0, 45, 8, 1);        
+        LCD.fillrect(0, 55, 35, 63, 1);        
+        LCD.setmode(XOR);
+        LCD.printf("%d", i);
+        LCD.locate(0, 55);        
+        LCD.printf("Inverted");
+        LCD.setmode(NORMAL);
+        LCD.copy_to_lcd();
+        i += 2;
+        i %= 30;
+        wait_ms(100);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Jul 16 22:47:03 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/6c34061e7c34
\ No newline at end of file