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.
AlphaNumDisplay.hpp
- Committer:
- etherealflaim
- Date:
- 2010-12-11
- Revision:
- 0:410a1870af10
- Child:
- 1:d5692deaa688
File content as of revision 0:410a1870af10:
#ifndef _AlphaNumDisplayH #define _AlphaNumDisplayH #include "mbed.h" #define ALPHA_NUM_SYMBOLS 39 #define ALPHA_NUM_CHECK '^' #define ALPHA_NUM_CHECK_I 38 #define ALPHA_NUM_STAR '*' #define ALPHA_NUM_STAR_I 37 #define ALPHA_NUM_CLEAR ' ' #define ALPHA_NUM_CLEAR_I 10 #define ALPHA_NUM_A_I 11 #define ALPHA_NUM_ZERO_I 0 class AlphaNumDisplay { private: // Display bars DigitalOut m_HTop; //< Top Horizontal Bar DigitalOut m_HMiddle; //< Middle Horizontal Bar DigitalOut m_HBottom; //< Bottom Horizontal Bar DigitalOut m_VTopLeft; //< Top Left Vertical Bar DigitalOut m_VBottomLeft; //< Bottom Left Vertical Bar DigitalOut m_VTopMiddle; //< Top Middle Vertical Bar DigitalOut m_VBottomMiddle; //< Bottom Middle Vertical Bar DigitalOut m_VTopRight; //< Top Right Vertical Bar DigitalOut m_VBottomRight; //< Bottom Right Vertical Bar DigitalOut m_DTopLeft; //<Top left to bottom right DigitalOut m_DTopRight; //< Bottom left to top right static unsigned char m_alphadisplay[][11]; //<Table of symbols public: // Constructor: AlphaNumDisplay(PinName HT, PinName HM, PinName HB, PinName VTL, PinName VBL, PinName VTM, PinName VBM, PinName VTR, PinName VBR, PinName DTL, PinName DTR); void DisplayChar(unsigned char c); //< Displays the character }; #endif