COSA
An Object-Oriented Platform for Arduino Programming
FixedNums8x16.hh
Go to the documentation of this file.
1 
21 #ifndef COSA_FONT_FIXEDNUMS8X16_HH
22 #define COSA_FONT_FIXEDNUMS8X16_HH
23 
24 #include "Font.hh"
25 
37 class FixedNums8x16 : public Font {
38 public:
43  Font(width, height, first, last, bitmap)
44  {}
45 
46 private:
47  static const uint8_t bitmap[] PROGMEM;
48  static const uint8_t width;
49  static const uint8_t height;
50  static const uint8_t first;
51  static const uint8_t last;
53 
54 #include "Cosa/Board.hh"
55 
56 const uint8_t FixedNums8x16::width = 8;
57 const uint8_t FixedNums8x16::height = 16;
58 const uint8_t FixedNums8x16::first = '+';
59 const uint8_t FixedNums8x16::last = ':';
60 
61 const uint8_t FixedNums8x16::bitmap[] __PROGMEM = {
62  0x80, 0x80, 0x80, 0xe0, 0xe0, 0x80, 0x80, 0x80,
63  0x00, 0x00, 0x00, 0x03, 0x03, 0x00, 0x00, 0x00, // char '+'
64  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
65  0x00, 0x00, 0x00, 0xb0, 0x70, 0x00, 0x00, 0x00, // char ','
66  0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
67  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // char '-'
68  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
69  0x00, 0x00, 0x00, 0x30, 0x30, 0x00, 0x00, 0x00, // char '.'
70  0x00, 0x00, 0x00, 0xc0, 0xf0, 0x3c, 0x0f, 0x03,
71  0x30, 0x3c, 0x0f, 0x03, 0x00, 0x00, 0x00, 0x00, // char '/'
72  0xfc, 0xfe, 0x03, 0x81, 0x61, 0x1b, 0xfe, 0xfc,
73  0x0f, 0x1f, 0x36, 0x21, 0x20, 0x30, 0x1f, 0x0f, // char '0'
74  0x04, 0x04, 0x06, 0xff, 0xff, 0x00, 0x00, 0x00,
75  0x20, 0x20, 0x20, 0x3f, 0x3f, 0x20, 0x20, 0x20, // char '1'
76  0x0c, 0x0e, 0x03, 0x01, 0x81, 0xc3, 0x7e, 0x3c,
77  0x38, 0x3c, 0x26, 0x23, 0x21, 0x20, 0x20, 0x20, // char '2'
78  0x0c, 0x0e, 0x43, 0x41, 0x41, 0x43, 0xfe, 0xbc,
79  0x0c, 0x1c, 0x30, 0x20, 0x20, 0x30, 0x1f, 0x0f, // char '3'
80  0x00, 0xe0, 0xfc, 0x1f, 0x83, 0x80, 0x00, 0x00,
81  0x0f, 0x0f, 0x08, 0x08, 0x3f, 0x3f, 0x08, 0x08, // char '4'
82 #if defined(BOARD_ATMEGA2560)
83  0x3f, 0x3f, 0x21, 0x21, 0x41, 0x61, 0xc1, 0x81,
84 #else
85  0x3f, 0x3f, 0x21, 0x21, 0x21, 0x61, 0xc1, 0x81,
86 #endif
87  0x0c, 0x1c, 0x30, 0x20, 0x20, 0x30, 0x1f, 0x0f, // char '5'
88  0xe0, 0xf8, 0x5c, 0x46, 0x43, 0xc1, 0x81, 0x01,
89  0x0f, 0x1f, 0x30, 0x20, 0x20, 0x30, 0x1f, 0x0f, // char '6'
90  0x01, 0x01, 0x01, 0x01, 0x81, 0xf1, 0x7f, 0x0f,
91  0x00, 0x00, 0x00, 0x3c, 0x3f, 0x03, 0x00, 0x00, // char '7'
92  0x1c, 0xbe, 0xe3, 0x41, 0x41, 0xe3, 0xbe, 0x1c,
93  0x0f, 0x1f, 0x30, 0x20, 0x20, 0x30, 0x1f, 0x0f, // char '8'
94  0x3c, 0x7e, 0xc3, 0x81, 0x81, 0x83, 0xfe, 0xfc,
95  0x20, 0x20, 0x20, 0x30, 0x18, 0x0e, 0x07, 0x01, // char '9'
96  0x00, 0x00, 0x00, 0x60, 0x60, 0x00, 0x00, 0x00,
97  0x00, 0x00, 0x00, 0x30, 0x30, 0x00, 0x00, 0x00 // char ':
98 };
99 
100 #endif
Definition: Font.hh:30
FixedNums8x16 fixednums8x16
const uint8_t FixedNums8x16::bitmap[] __PROGMEM