Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed_PT6302 mbed_PT6301
PT6302 Class Reference
A class for driving Princeton PT6302 VFD controller. More...
#include <PT6302.h>
Inherited by PT6302_HANNSTAR.
Public Types | |
| enum | Mode |
Enums for display mode. More... | |
Public Member Functions | |
| PT6302 (PinName mosi, PinName sclk, PinName cs, Mode mode=Grid16_Add2) | |
| Datatypes for display data. | |
| void | cls () |
| Clear the screen. | |
| void | setBrightness (char brightness=PT6302_BRT_DEF) |
| Set Brightness. | |
| void | setDisplay (bool on) |
| Set the Display mode On/off. | |
| void | setPort (char port=0) |
| Set Port. | |
| void | setUDC (unsigned char udc_idx, UDCData_t udc_data) |
| Set User Defined Characters (UDC) | |
| void | writeData (char data, char address) |
| Write Data to PT6302. | |
| void | writeAData (char adata, char address) |
| Write Additional Data to PT6302. | |
Protected Member Functions | |
| void | _writeCmd (char cmd, char data) |
| Write command and parameters to PT6302. | |
| void | _writeCmd (char cmd) |
| Write command to PT6302. | |
Detailed Description
A class for driving Princeton PT6302 VFD controller.
Supports upto 16 Grids of 35 matrix segments. Also supports 2 additional segments and 2 port pins. SPI bus interface device.
Definition at line 232 of file PT6302.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
Datatypes for display data.
Constructor for class for driving Princeton PT6302 VFD controller.
Constructor for class for driving Princeton PT6302 VFD controller
Supports upto 16 Grids of 35 matrix segments. Also supports 2 additional segments and 2 port pins. SPI bus interface device.
- Parameters:
-
PinName mosi, sclk, cs SPI bus pins Mode selects number of Grids and Segments (default 16 Grids, 2 additional segments)
Supports upto 16 Grids of 35 matrix segments. Also supports 2 additional segments and 2 port pins. SPI bus interface device.
- Parameters:
-
PinName mosi, sclk, cs SPI bus pins Mode selects number of Grids and Segments (default 16 Grids, 2 additional segments)
Definition at line 38 of file PT6302.cpp.
Member Function Documentation
| void _writeCmd | ( | char | cmd, |
| char | data | ||
| ) | [protected] |
Write command and parameters to PT6302.
Write command and data to PT6302.
- Parameters:
-
char cmd Command byte char data Parameter for command
- Returns:
- none
Definition at line 206 of file PT6302.cpp.
| void _writeCmd | ( | char | cmd ) | [protected] |
Write command to PT6302.
- Parameters:
-
char cmd Command byte
- Returns:
- none
Definition at line 228 of file PT6302.cpp.
| void cls | ( | ) |
| void setBrightness | ( | char | brightness = PT6302_BRT_DEF ) |
Set Brightness.
- Parameters:
-
char brightness (3 significant bits, valid range 0..7 (dutycycle linked to number of grids)
- Returns:
- none
- Parameters:
-
char brightness (3 significant bits, valid range 0..7)
- Returns:
- none
Definition at line 100 of file PT6302.cpp.
| void setDisplay | ( | bool | on ) |
Set the Display mode On/off.
- Parameters:
-
bool display mode
- Returns:
- none
Definition at line 113 of file PT6302.cpp.
| void setPort | ( | char | port = 0 ) |
Set Port.
- Parameters:
-
char port (2 least significant bits)
- Returns:
- none
Reimplemented in PT6302_HANNSTAR.
Definition at line 131 of file PT6302.cpp.
| void setUDC | ( | unsigned char | udc_idx, |
| UDCData_t | udc_data | ||
| ) |
Set User Defined Characters (UDC)
- Parameters:
-
unsigned char udc_idx The Index of the UDC (0..7) UDCData_t udc_data The bitpattern for the UDC (5 bytes)
- Returns:
- none
Definition at line 147 of file PT6302.cpp.
| void writeAData | ( | char | adata, |
| char | address | ||
| ) |
Write Additional Data to PT6302.
- Parameters:
-
char adata Additional code (annunciator) char address Parameter for data
- Returns:
- none
Definition at line 191 of file PT6302.cpp.
| void writeData | ( | char | data, |
| char | address | ||
| ) |
Write Data to PT6302.
- Parameters:
-
char data Character code char address Parameter for data
- Returns:
- none
Definition at line 176 of file PT6302.cpp.
Generated on Thu Jul 14 2022 03:33:37 by
1.7.2
PT6302 VFD Driver for upto 16 Dot Matrix Characters and two icons per digit.