Test program for Sanyo LC75711 VFD controller

Dependencies:   LC75711 mbed

Files at this revision

API Documentation at this revision

Comitter:
wim
Date:
Sun Sep 17 13:33:05 2017 +0000
Parent:
1:7b154968b0ca
Commit message:
Minor Cleanup, added comments, added Display On/Off

Changed in this revision

LC75711.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
diff -r 7b154968b0ca -r 46ec5f4fb9d8 LC75711.lib
--- a/LC75711.lib	Fri Sep 15 17:38:57 2017 +0000
+++ b/LC75711.lib	Sun Sep 17 13:33:05 2017 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/wim/code/LC75711/#cb6f2b7930c8
+https://developer.mbed.org/users/wim/code/LC75711/#8101f714d38d
diff -r 7b154968b0ca -r 46ec5f4fb9d8 main.cpp
--- a/main.cpp	Fri Sep 15 17:38:57 2017 +0000
+++ b/main.cpp	Sun Sep 17 13:33:05 2017 +0000
@@ -49,7 +49,8 @@
     pc.printf("8:   Kitt\n\r");
     pc.printf("9:   Cls\n\r");    
     pc.printf("A/B: Blink On/Off\n\r");
-    pc.printf("C:   Bye\n\r");    
+    pc.printf("C/D: Display On/Off\n\r");    
+    pc.printf("X:   Bye\n\r");    
 }
 
 
@@ -331,6 +332,19 @@
         } 
 
         case 'C': {
+          //Display On
+          LC75711.setDisplay(true);
+          break;
+        } 
+
+        case 'D': {
+          //Display Off
+          LC75711.setDisplay(false);          
+          
+          break;
+        } 
+
+        case 'X': {
           LC75711.cls(); // clear all, preserve Icons
           LC75711.printf("Bye");