Permalink
Browse files

Imported from Ice-Tube, for use with DOW / DateLong / DOW DateLong mo…

…des.
  • Loading branch information...
1 parent 4b1b0e8 commit abb65253cc6bd45fe82c1fe4c1b1f013f8362f54 @CaitSith2 CaitSith2 committed Aug 7, 2010
Showing with 51 additions and 0 deletions.
  1. +51 −0 firmware/fonttable.h
View
51 firmware/fonttable.h
@@ -0,0 +1,51 @@
+const uint8_t alphatable[] PROGMEM = {
+ 0xFA, /* a */
+ 0x3E, /* b */
+ 0x1A, /* c */
+ 0x7A, /* d */
+ 0xDE, /* e */
+ 0x8E, /* f */
+ 0xF6, /* g */
+ 0x2E, /* h */
+ 0x60, /* i */
+ 0x78, /* j */
+ 0xAE, //k
+ 0x1C, // l
+ 0xAA, // m
+ 0x2A, // n
+ 0x3A, // o
+ 0xCE, //p
+ 0xF3, // q
+ 0x0A, //r
+ 0xB6, //s
+ 0x1E, //t
+ 0x38, //u
+ 0x38, //v // fix?
+ 0xB8, //w
+ 0x6E, //x
+ 0x76, // y
+ 0xDA, //z
+ /* more */
+};
+PGM_P alphatable_p PROGMEM = alphatable;
+
+const uint8_t numbertable[] PROGMEM = {
+ 0xFC /* 0 */,
+ 0x60 /* 1 */,
+ 0xDA /* 2 */,
+ 0xF2 /* 3 */,
+ 0x66 /* 4 */,
+ 0xB6 /* 5 */,
+ 0xBE, /* 6 */
+ 0xE0, /* 7 */
+ 0xFE, /* 8 */
+#ifdef FEATURE_9
+ // Normal 7-segment "9" digit looks the same as letter "g".
+ // "This notation is ambiguous but the meaning will be clear in context." - Hungerford, "Algebra"
+ 0xF6, /* 9 */
+#else
+ // ladyada's version of "9" is non-standard but distinct from letter "g".
+ 0xE6, /* 9 */
+#endif
+};
+PGM_P numbertable_p PROGMEM = numbertable;

0 comments on commit abb6525

Please sign in to comment.