Library for the Princeton PT6312 Vacuum Fluorescent Display (VFD) driver.

Dependents:   mbed_PT6312

This library is documented here.

Revision:
6:d3dc313a6840
Parent:
5:be9ec73af639
--- a/PT6312.h	Sun Dec 20 14:41:58 2015 +0000
+++ b/PT6312.h	Wed Jan 20 18:50:50 2016 +0000
@@ -1,6 +1,7 @@
 /* mbed PT6312 Library, for Princeton PT6312 VFD controller
  * Copyright (c) 2015, v01: WH, Initial version
  *               2015, v02: WH, rename Digit/Grid, added DVD462 code, added C2233 code
+ *               2016, v03: WH, refactored display and keyboard defines 
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -104,11 +105,16 @@
  * @endcode
  */
 
+//PT6312 Display and Keymatrix data
+#define PT6312_MAX_NR_GRIDS   11
+#define PT6312_BYTES_PER_GRID  2
+//Significant bits Keymatrix data
+#define PT6312_KEY_MSK      0xFF 
+
 //Memory size in bytes for Display and Keymatrix
-#define PT6312_DISPLAY_MEM    22
+#define PT6312_DISPLAY_MEM  (PT6312_MAX_NR_GRIDS * PT6312_BYTES_PER_GRID)
 #define PT6312_KEY_MEM         3
-//Significant bits Keymatrix data
-#define PT6312_KEY_BITS        8 
+
 
 //Reserved bits for commands
 #define PT6312_CMD_MSK      0xE0