Princeton PT6964 LED controller supports 4 Digits @ 13 Segments, 5 Digits @ 12 Segments, 6 Digits @ 11 Segments or 7 Digits @ 10 Segments. Also supports a scanned keyboard of upto 20 keys. SPI bus interface.

Dependents:   mbed_PT6964

Princeton PT6964 LED controller supports 4 Digits @ 13 Segments, 5 Digits @ 12 Segments, 6 Digits @ 11 Segments or 7 Digits @ 10 Segments. Also supports a scanned keyboard of upto 20 keys. SPI bus interface.

See Component page here.

Revision:
1:1adf993a3e34
Parent:
0:27f32a087e5a
diff -r 27f32a087e5a -r 1adf993a3e34 Font_7Seg.cpp
--- a/Font_7Seg.cpp	Sat Nov 21 16:43:15 2015 +0000
+++ b/Font_7Seg.cpp	Sat Jan 09 13:40:06 2016 +0000
@@ -1,5 +1,6 @@
 /* mbed LED Font Library, for Princeton PT6964 controller as used in DVD538A
  * Copyright (c) 2015, v01: WH, Initial version
+ *               2016, v02: WH, fonttable changed to short          
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -21,29 +22,42 @@
  */
 #include "Font_7Seg.h"
 
+
+//Mask for blending out and restoring Icons
+const char MASK_ICON_GRID[][2] = {
+                                   {LO(S7_ICON_GR1), HI(S7_ICON_GR1)},
+                                   {LO(S7_ICON_GR2), HI(S7_ICON_GR2)},
+                                   {LO(S7_ICON_GR3), HI(S7_ICON_GR3)},
+                                   {LO(S7_ICON_GR4), HI(S7_ICON_GR4)},
+                                   {LO(S7_ICON_GR5), HI(S7_ICON_GR5)},
+                                   {LO(S7_ICON_GR6), HI(S7_ICON_GR6)},
+                                   {LO(S7_ICON_GR7), HI(S7_ICON_GR7)}                                   
+                                 };
+
+
 // ASCII Font definition table for transmission to PT6964
 //
 //#define FONT_7S_START     0x20
 //#define FONT_7S_END       0x7F
 //#define FONT_7S_NR_CHARS (FONT_7_END - FONT_7S_START + 1)
  
-const char FONT_7S[][2] = { 
-                             {LO(C_0), HI(C_0)}, //48 0x30
-                             {LO(C_1), HI(C_1)},
-                             {LO(C_2), HI(C_2)},
-                             {LO(C_3), HI(C_3)},
-                             {LO(C_4), HI(C_4)},                   
-                             {LO(C_5), HI(C_5)},
-                             {LO(C_6), HI(C_6)},
-                             {LO(C_7), HI(C_7)},
-                             {LO(C_8), HI(C_8)},
-                             {LO(C_9), HI(C_9)},
-                             {LO(C_A), HI(C_A)}, //65 0x41, A
-                             {LO(C_B), HI(C_B)},
-                             {LO(C_C), HI(C_C)},
-                             {LO(C_D), HI(C_D)},
-                             {LO(C_E), HI(C_E)},
-                             {LO(C_F), HI(C_F)}
-                                                 };// 127                             
-  
+const short FONT_7S[] = { 
+                           C7_0, //48 0x30
+                           C7_1,
+                           C7_2,
+                           C7_3,
+                           C7_4,                   
+                           C7_5,
+                           C7_6,
+                           C7_7,
+                           C7_8,
+                           C7_9,
+                           C7_A, //65 0x41, A
+                           C7_B,
+                           C7_C,
+                           C7_D,
+                           C7_E,
+                           C7_F
+                         };// 127                             
+
  
\ No newline at end of file