Library for the Princeton PT6312 Vacuum Fluorescent Display (VFD) driver.
This library is documented here.
Diff: Font_16Seg.h
- Revision:
- 5:be9ec73af639
- Parent:
- 3:156c23d9652a
--- a/Font_16Seg.h Fri Sep 11 19:32:17 2015 +0000 +++ b/Font_16Seg.h Sun Dec 20 14:41:58 2015 +0000 @@ -1,5 +1,6 @@ /* mbed VFD Font Library, for Princeton PT6312 VFD controller as used in Philips DVP630 * Copyright (c) 2015, v01: WH, Initial version + * 2015, v02: WH, Test DVP630 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -22,6 +23,11 @@ #ifndef MBED_FONT_16SEG_H #define MBED_FONT_16SEG_H +// Select one of the testboards for Princeton PT6312 VFD controller +#include "PT6312_Config.h" + +#if (DVP630_TEST == 1) +//#if (1) // Segment bit positions for 14 or 16 Segment display using the Philips DVP630 and DVD737 mapping for PT6312 // Modify this table for different 'bit-to-segment' mappings. The ASCII character defines and the FONT_16S const table below // will be adapted automatically according to the bit-to-segment mapping. Obviously this will only work when the segment @@ -43,13 +49,22 @@ #define S_N 0x0800 #define S_D1 0x1000 // Assuming 2 part D segment #define S_D2 0x1000 -#define S_COL 0x2000 #define S_S 0x4000 + +//Icons All Grids //#define S_DP 0x8000 // Assuming single DP segment +//Icons Grid 3 +#define S_COL3 0x2000 + +//Icons Grid 5 +#define S_COL5 0x2000 + //Mask for blending out and restoring Icons //One mask pattern will be sufficient assuming that all digits use the same mapping. -#define S_ICON_MSK (S_COL) +#define S_ICON_MSK (S_COL3) + +#endif // ASCII Font definitions for segments in each character