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.
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.
Diff: PT6964.h
- Revision:
- 2:eaf2f5d1af34
- Parent:
- 1:1adf993a3e34
--- a/PT6964.h Sat Jan 09 13:40:06 2016 +0000 +++ b/PT6964.h Thu Jan 14 20:09:52 2016 +0000 @@ -2,6 +2,7 @@ * Copyright (c) 2015, v01: WH, Initial version * 2015, v02: WH, rename Digit/Grid * 2016, v03: WH, updated Icon handling, UDCs and _putc() + * 2016, v04: 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 @@ -69,11 +70,15 @@ * @endcode */ +//PT6964 Display and Keymatrix data +#define PT6964_MAX_NR_GRIDS 7 +#define PT6964_BYTES_PER_GRID 2 +//Significant bits Keymatrix data +#define PT6964_KEY_MSK 0x1B + //Memory size in bytes for Display and Keymatrix -#define PT6964_DISPLAY_MEM 14 +#define PT6964_DISPLAY_MEM (PT6964_MAX_NR_GRIDS * PT6964_BYTES_PER_GRID) #define PT6964_KEY_MEM 5 -//Significant bits Keymatrix data -#define PT6964_KEY_BITS 5 //Reserved bits for commands #define PT6964_CMD_MSK 0xC0 @@ -224,7 +229,6 @@ #define DVD538A_NR_GRIDS 5 #define DVD538A_NR_DIGITS 4 -//#define DVD538A_DIG1_IDX 1 #define DVD538A_NR_UDC 8 /** Constructor for class for driving Princeton PT6964 controller as used in DVD538A