TM16XXFonts.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /*
  2. TM16XXFonts.h - Font definition for TM16XX.
  3. Copyright (C) 2011 Ricardo Batista (rjbatista <at> gmail <dot> com)
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the version 3 GNU General Public License as
  6. published by the Free Software Foundation.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. The bits are displayed by mapping bellow
  14. -- 0 --
  15. | |
  16. 5 1
  17. -- 6 --
  18. 4 2
  19. | |
  20. -- 3 -- .7
  21. */
  22. #ifndef TM16XXFonts_h
  23. #define TM16XXFonts_h
  24. // definition for standard hexadecimal numbers
  25. const byte NUMBER_FONT[] = {
  26. // DpGFEDCBA
  27. 0b00111111, // 0
  28. 0b00000110, // 1
  29. 0b01011011, // 2
  30. 0b01001111, // 3
  31. 0b01100110, // 4
  32. 0b01101101, // 5
  33. 0b01111101, // 6
  34. 0b00000111, // 7
  35. 0b01111111, // 8
  36. 0b01101111, // 9
  37. 0b01110111, // A
  38. 0b01111100, // B
  39. 0b00111001, // C
  40. 0b01011110, // D
  41. 0b01111001, // E
  42. 0b01110001 // F
  43. };
  44. const byte MINUS = 0b01000000;
  45. // definition for error
  46. const byte ERROR_DATA[] = {
  47. 0b01111001, // E
  48. 0b01010000, // r
  49. 0b01010000, // r
  50. 0b01011100, // o
  51. 0b01010000, // r
  52. 0,
  53. 0,
  54. 0
  55. };
  56. // definition for the displayable ASCII chars
  57. const byte FONT_DEFAULT[] = {
  58. // DpGFEDCBA
  59. 0b00000000, // (32) <space>
  60. 0b10000110, // (33) !
  61. 0b00100010, // (34) "
  62. 0b01111110, // (35) #
  63. 0b01101101, // (36) $
  64. 0b00000000, // (37) %
  65. 0b00000000, // (38) &
  66. 0b00000010, // (39) '
  67. 0b00110000, // (40) (
  68. 0b00000110, // (41) )
  69. 0b01100011, // (42) *
  70. 0b00000000, // (43) +
  71. 0b00000100, // (44) ,
  72. 0b01000000, // (45) -
  73. 0b10000000, // (46) .
  74. 0b01010010, // (47) /
  75. 0b00111111, // (48) 0
  76. 0b00000110, // (49) 1
  77. 0b01011011, // (50) 2
  78. 0b01001111, // (51) 3
  79. 0b01100110, // (52) 4
  80. 0b01101101, // (53) 5
  81. 0b01111101, // (54) 6
  82. 0b00100111, // (55) 7
  83. 0b01111111, // (56) 8
  84. 0b01101111, // (57) 9
  85. 0b00000000, // (58) :
  86. 0b00000000, // (59) ;
  87. 0b00000000, // (60) <
  88. 0b01001000, // (61) =
  89. 0b00000000, // (62) >
  90. 0b01010011, // (63) ?
  91. 0b01011111, // (64) @
  92. 0b01110111, // (65) A
  93. 0b01111111, // (66) B
  94. 0b00111001, // (67) C
  95. 0b00111111, // (68) D
  96. 0b01111001, // (69) E
  97. 0b01110001, // (70) F
  98. 0b00111101, // (71) G
  99. 0b01110110, // (72) H
  100. 0b00000110, // (73) I
  101. 0b00011111, // (74) J
  102. 0b01101001, // (75) K
  103. 0b00111000, // (76) L
  104. 0b00010101, // (77) M
  105. 0b00110111, // (78) N
  106. 0b00111111, // (79) O
  107. 0b01110011, // (80) P
  108. 0b01100111, // (81) Q
  109. 0b00110001, // (82) R
  110. 0b01101101, // (83) S
  111. 0b01111000, // (84) T
  112. 0b00111110, // (85) U
  113. 0b00101010, // (86) V
  114. 0b00011101, // (87) W
  115. 0b01110110, // (88) X
  116. 0b01101110, // (89) Y
  117. 0b01011011, // (90) Z
  118. 0b00111001, // (91) [
  119. 0b01100100, // (92) \ (this can't be the last char on a line, even in comment or it'll concat)
  120. 0b00001111, // (93) ]
  121. 0b00000000, // (94) ^
  122. 0b00001000, // (95) _
  123. 0b00100000, // (96) `
  124. // DpGFEDCBA
  125. 0b01011111, // (97) a
  126. 0b01111100, // (98) b
  127. 0b01011000, // (99) c
  128. 0b01011110, // (100) d
  129. 0b01111011, // (101) e
  130. 0b00110001, // (102) f
  131. 0b01101111, // (103) g
  132. 0b01110100, // (104) h
  133. 0b00000100, // (105) i
  134. 0b00001110, // (106) j
  135. 0b01110101, // (107) k
  136. 0b00110000, // (108) l
  137. 0b01010101, // (109) m
  138. 0b01010100, // (110) n
  139. 0b01011100, // (111) o
  140. 0b01110011, // (112) p
  141. 0b01100111, // (113) q
  142. 0b01010000, // (114) r
  143. 0b01101101, // (115) s
  144. 0b01111000, // (116) t
  145. 0b00011100, // (117) u
  146. 0b00101010, // (118) v
  147. 0b00011101, // (119) w
  148. 0b01110110, // (120) x
  149. 0b01101110, // (121) y
  150. 0b01000111, // (122) z
  151. 0b01000110, // (123) {
  152. 0b00000110, // (124) |
  153. 0b01110000, // (125) }
  154. 0b00000001, // (126) ~
  155. };
  156. #endif