Library for Princeton PT6318 VFD controller Initial version for KUH8300.

Revision:
1:a7a518dbca96
Parent:
0:e5741b4e6a1a
--- a/PT6318.h	Mon Feb 01 20:18:04 2016 +0000
+++ b/PT6318.h	Sun Jun 19 13:27:07 2016 +0000
@@ -58,9 +58,9 @@
  *   while (1) {
  *    // Check and read keydata
  *    if (PT6318.getKeys(&keydata)) {
- *      pc.printf("Keydata 0..5 = 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x\r\n", keydata[0], keydata[1], keydata[2], keydata[3], keydata[4], keydata[5]);
+ *      pc.printf("Keydata 0..5 = 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x\r\n", keydata[0], keydata[1], keydata[2], keydata[3], keydata[4], keydata[5]);
  *
- *      if (keydata[0] == 0x10) { //sw2   
+ *      if (keydata[0] == 0x01) { //sw1   
  *        PT6318.cls(); 
  *        wait(1);
  *        PT6318.writeData(all_str);
@@ -148,7 +148,7 @@
 
 /** A class for driving Princeton PT6318 VFD controller
  *
- * @brief Supports 8 Grids of 20 Segments upto 16 Grids of 12 Segments. Also supports a scanned keyboard of upto 32 keys, 4 switches and 5 LEDs.
+ * @brief Supports 8 Grids of 20 Segments upto 16 Grids of 12 Segments. Also supports a scanned keyboard of upto 48 keys, 4 switches and 5 LEDs.
  *        SPI bus interface device. 
  */
 class PT6318 {
@@ -335,7 +335,7 @@
     S    = (6<<24) | S7_S
   };
   
-  typedef short UDCData_t[KUH8300_NR_UDC];
+  typedef char UDCData_t[KUH8300_NR_UDC];
 
 
 /** Constructor for class for driving Princeton PT6318 VFD controller as used in KUH8300
@@ -431,8 +431,8 @@
     int _columns;                    // Max number of columns
     
     DisplayData_t _displaybuffer;    // Local mirror for all chars and icons
-    UDCData_t _UDC_16S;              // User Defined Character pattterns (UDC)    
-};
+    UDCData_t _UDC_7S;               // User Defined Character pattterns (UDC)    
+}; 
 #endif
 
 #endif