2016-09-26 21:14:03 +00:00
|
|
|
#ifndef SegmentDisplayChars_h
|
|
|
|
#define SegmentDisplayChars_h
|
|
|
|
|
|
|
|
#include "avr/pgmspace.h"
|
|
|
|
|
|
|
|
|
|
|
|
#define SegmentA 1 // Top
|
|
|
|
#define SegmentB 2 // Top right
|
|
|
|
#define SegmentC 4 // Bottom right
|
|
|
|
#define SegmentD 8 // Bottom
|
|
|
|
#define SegmentE 16 // Bottom left
|
|
|
|
#define SegmentF 32 // Top left
|
|
|
|
#define SegmentG 64 // Middle
|
|
|
|
|
|
|
|
|
2016-09-27 21:28:43 +00:00
|
|
|
const unsigned char SDNumberSegments[10] PROGMEM =
|
2016-09-26 21:14:03 +00:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* | |
|
|
|
|
* |_|
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentB | SegmentC | SegmentD | SegmentE | SegmentF,
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* |
|
|
|
|
* |
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentB | SegmentC,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* _|
|
|
|
|
* |_
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentB | SegmentD | SegmentE | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* _|
|
|
|
|
* _|
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentB | SegmentC | SegmentD | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* |_|
|
|
|
|
* |
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentB | SegmentC | SegmentF | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* |_
|
|
|
|
* _|
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentC | SegmentD | SegmentF | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* |_
|
|
|
|
* |_|
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentC | SegmentD | SegmentE | SegmentF | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* |
|
|
|
|
* |
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentB | SegmentC,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* |_|
|
|
|
|
* |_|
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentB | SegmentC | SegmentD | SegmentE | SegmentF | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* |_|
|
|
|
|
* _|
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentB | SegmentC | SegmentD | SegmentF | SegmentG
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-27 21:28:43 +00:00
|
|
|
const unsigned char SDCharacterSegments[26] PROGMEM =
|
2016-09-26 21:14:03 +00:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* |_|
|
|
|
|
* | |
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentB | SegmentC | SegmentE | SegmentF | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* |_
|
|
|
|
* |_|
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentC | SegmentD | SegmentE | SegmentF | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* |
|
|
|
|
* |_
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentD | SegmentE | SegmentF,
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* _|
|
|
|
|
* |_|
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentB | SegmentC | SegmentD | SegmentE | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* |_
|
|
|
|
* |_
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentD | SegmentE | SegmentF | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* |_
|
|
|
|
* |
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentE | SegmentF | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* |_|
|
|
|
|
* _|
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentB | SegmentC | SegmentD | SegmentF | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* |_|
|
|
|
|
* | |
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentB | SegmentC | SegmentD | SegmentF | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2016-09-27 21:28:43 +00:00
|
|
|
* |
|
|
|
|
* |
|
2016-09-26 21:14:03 +00:00
|
|
|
*
|
|
|
|
**/
|
2016-09-27 21:28:43 +00:00
|
|
|
SegmentB | SegmentC,
|
2016-09-26 21:14:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* |
|
|
|
|
* |_|
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentB | SegmentC | SegmentD | SegmentE,
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2016-09-27 21:28:43 +00:00
|
|
|
* |_|
|
2016-09-26 21:14:03 +00:00
|
|
|
* |_
|
|
|
|
*
|
|
|
|
**/
|
2016-09-27 21:28:43 +00:00
|
|
|
SegmentB | SegmentD | SegmentE | SegmentF | SegmentG,
|
2016-09-26 21:14:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* |
|
|
|
|
* |_
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentD | SegmentE | SegmentF,
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2016-09-27 21:28:43 +00:00
|
|
|
* _
|
2016-09-26 21:14:03 +00:00
|
|
|
* | |
|
|
|
|
*
|
|
|
|
**/
|
2016-09-27 21:28:43 +00:00
|
|
|
SegmentC | SegmentE | SegmentG,
|
2016-09-26 21:14:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* | |
|
2016-09-27 21:28:43 +00:00
|
|
|
* | |
|
2016-09-26 21:14:03 +00:00
|
|
|
*
|
|
|
|
**/
|
2016-09-27 21:28:43 +00:00
|
|
|
SegmentA | SegmentB | SegmentC | SegmentE | SegmentF,
|
2016-09-26 21:14:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* | |
|
|
|
|
* |_|
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentB | SegmentC | SegmentD | SegmentE | SegmentF,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* |_|
|
|
|
|
* |
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentB | SegmentE | SegmentF | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* |_|
|
|
|
|
* |
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentB | SegmentC | SegmentF | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* _
|
|
|
|
* |
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentE | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* |_
|
|
|
|
* _|
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentC | SegmentD | SegmentF | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* |_
|
|
|
|
* |_
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentD | SegmentE | SegmentF | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* | |
|
|
|
|
* |_|
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentB | SegmentC | SegmentD | SegmentE | SegmentF,
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2016-09-27 21:28:43 +00:00
|
|
|
* | |
|
2016-09-26 21:14:03 +00:00
|
|
|
* |_|
|
|
|
|
*
|
|
|
|
**/
|
2016-09-27 21:28:43 +00:00
|
|
|
SegmentB | SegmentC | SegmentD | SegmentE | SegmentF,
|
2016-09-26 21:14:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2016-09-27 21:28:43 +00:00
|
|
|
*
|
|
|
|
* |_|
|
2016-09-26 21:14:03 +00:00
|
|
|
*
|
|
|
|
**/
|
2016-09-27 21:28:43 +00:00
|
|
|
SegmentC | SegmentD | SegmentE,
|
2016-09-26 21:14:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2016-09-27 21:28:43 +00:00
|
|
|
* |_|
|
|
|
|
* | |
|
2016-09-26 21:14:03 +00:00
|
|
|
*
|
|
|
|
**/
|
2016-09-27 21:28:43 +00:00
|
|
|
SegmentB | SegmentC | SegmentE | SegmentF | SegmentG,
|
2016-09-26 21:14:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* |_|
|
|
|
|
* _|
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentB | SegmentC | SegmentD | SegmentF | SegmentG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* _
|
|
|
|
* _|
|
|
|
|
* |_
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
SegmentA | SegmentB | SegmentD | SegmentE | SegmentG
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|