mega168 with four 5x7 LEDs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

261 lines
9.1KB

  1. // font from http://www.mikrocontroller.net/topic/54860 */
  2. const prog_char font[][5]={
  3. {0x00,0x00,0x00,0x00,0x00}, // 0x00
  4. {0x1E,0x35,0x31,0x35,0x1E}, // 0x01
  5. {0x1E,0x35,0x37,0x35,0x1E}, // 0x02
  6. {0x0E,0x1F,0x3E,0x1F,0x0E}, // 0x03
  7. {0x08,0x1C,0x7F,0x1C,0x08}, // 0x04
  8. {0x18,0x4A,0x7F,0x4A,0x18}, // 0x05
  9. {0x1C,0x4E,0x7F,0x4E,0x1C}, // 0x06
  10. {0x00,0x00,0x00,0x00,0x00}, // 0x07
  11. {0x00,0x00,0x00,0x00,0x00}, // 0x08
  12. {0x00,0x00,0x00,0x00,0x00}, // 0x09
  13. {0x00,0x00,0x00,0x00,0x00}, // 0x0A
  14. {0x38,0x44,0x44,0x47,0x3B}, // 0x0B
  15. {0x0E,0x51,0xF1,0x51,0x0E}, // 0x0C
  16. {0x00,0x00,0x00,0x00,0x00}, // 0x0D
  17. {0x60,0x7E,0x02,0x33,0x3F}, // 0x0E
  18. {0x2A,0x1C,0x36,0x1C,0x2A}, // 0x0F
  19. {0x3E,0x1C,0x1C,0x08,0x08}, // 0x10
  20. {0x08,0x08,0x1C,0x1C,0x3E}, // 0x11
  21. {0x00,0x22,0x7F,0x22,0x00}, // 0x12
  22. {0x00,0x2E,0x00,0x2E,0x00}, // 0x13
  23. {0x06,0x7F,0x01,0x7F,0x00}, // 0x14
  24. {0x00,0x4A,0x55,0x29,0x00}, // 0x15
  25. {0x00,0x18,0x18,0x18,0x18}, // 0x16
  26. {0x00,0x4A,0x5F,0x4A,0x00}, // 0x17
  27. {0x00,0x02,0x7F,0x02,0x00}, // 0x18
  28. {0x00,0x20,0x7F,0x20,0x00}, // 0x19
  29. {0x00,0x08,0x08,0x1C,0x08}, // 0x1A
  30. {0x00,0x08,0x1C,0x08,0x08}, // 0x1B
  31. {0x00,0x3C,0x20,0x20,0x20}, // 0x1C
  32. {0x08,0x1C,0x08,0x1C,0x08}, // 0x1D
  33. {0x20,0x38,0x3E,0x38,0x20}, // 0x1E
  34. {0x02,0x0E,0x3E,0x0E,0x02}, // 0x1F
  35. {0x00,0x00,0x00,0x00,0x00}, // 0x20
  36. {0x00,0x00,0x2F,0x00,0x00}, // 0x21
  37. {0x00,0x03,0x00,0x03,0x00}, // 0x22
  38. {0x34,0x1C,0x36,0x1C,0x16}, // 0x23
  39. {0x00,0x26,0x7F,0x32,0x00}, // 0x24
  40. {0x32,0x0D,0x1E,0x2C,0x13}, // 0x25
  41. {0x18,0x26,0x2D,0x12,0x28}, // 0x26
  42. {0x00,0x00,0x03,0x00,0x00}, // 0x27
  43. {0x00,0x1C,0x22,0x41,0x41}, // 0x28
  44. {0x41,0x41,0x22,0x1C,0x00}, // 0x29
  45. {0x00,0x0A,0x05,0x0A,0x00}, // 0x2A
  46. {0x00,0x10,0x38,0x10,0x00}, // 0x2B
  47. {0x00,0x80,0x60,0x00,0x00}, // 0x2C
  48. {0x00,0x08,0x08,0x08,0x00}, // 0x2D
  49. {0x00,0x00,0x20,0x00,0x00}, // 0x2E
  50. {0x00,0x60,0x18,0x06,0x01}, // 0x2F
  51. {0x00,0x1E,0x21,0x21,0x1E}, // 0x30
  52. {0x00,0x22,0x3F,0x20,0x00}, // 0x31
  53. {0x00,0x31,0x29,0x26,0x00}, // 0x32
  54. {0x00,0x25,0x25,0x1A,0x00}, // 0x33
  55. {0x00,0x0C,0x0A,0x3F,0x08}, // 0x34
  56. {0x00,0x27,0x25,0x19,0x00}, // 0x35
  57. {0x00,0x1E,0x25,0x25,0x18}, // 0x36
  58. {0x00,0x01,0x39,0x05,0x03}, // 0x37
  59. {0x00,0x1A,0x25,0x25,0x1A}, // 0x38
  60. {0x00,0x06,0x29,0x29,0x1E}, // 0x39
  61. {0x00,0x00,0x24,0x00,0x00}, // 0x3A
  62. {0x00,0x80,0x64,0x00,0x00}, // 0x3B
  63. {0x00,0x08,0x08,0x14,0x22}, // 0x3C
  64. {0x00,0x14,0x14,0x14,0x14}, // 0x3D
  65. {0x00,0x22,0x14,0x08,0x08}, // 0x3E
  66. {0x00,0x01,0x29,0x05,0x02}, // 0x3F
  67. {0x3C,0x42,0x59,0x55,0x5E}, // 0x40
  68. {0x30,0x1C,0x12,0x1C,0x30}, // 0x41
  69. {0x00,0x3E,0x2A,0x36,0x00}, // 0x42
  70. {0x00,0x1C,0x22,0x22,0x22}, // 0x43
  71. {0x00,0x3E,0x22,0x22,0x1C}, // 0x44
  72. {0x00,0x3E,0x2A,0x2A,0x00}, // 0x45
  73. {0x00,0x3E,0x0A,0x0A,0x00}, // 0x46
  74. {0x00,0x1C,0x22,0x2A,0x3A}, // 0x47
  75. {0x00,0x3E,0x08,0x08,0x3E}, // 0x48
  76. {0x00,0x22,0x3E,0x22,0x00}, // 0x49
  77. {0x00,0x22,0x22,0x1E,0x00}, // 0x4A
  78. {0x00,0x3E,0x08,0x14,0x22}, // 0x4B
  79. {0x00,0x3E,0x20,0x20,0x20}, // 0x4C
  80. {0x3E,0x04,0x18,0x04,0x3E}, // 0x4D
  81. {0x00,0x3E,0x04,0x08,0x3E}, // 0x4E
  82. {0x1C,0x22,0x22,0x22,0x1C}, // 0x4F
  83. {0x00,0x3E,0x0A,0x0A,0x04}, // 0x50
  84. {0x1C,0x22,0x22,0x62,0x9C}, // 0x51
  85. {0x00,0x3E,0x0A,0x14,0x20}, // 0x52
  86. {0x00,0x24,0x2A,0x12,0x00}, // 0x53
  87. {0x02,0x02,0x3E,0x02,0x02}, // 0x54
  88. {0x00,0x1E,0x20,0x20,0x1E}, // 0x55
  89. {0x00,0x0E,0x30,0x30,0x0E}, // 0x56
  90. {0x0E,0x30,0x0C,0x30,0x0E}, // 0x57
  91. {0x22,0x14,0x08,0x14,0x22}, // 0x58
  92. {0x02,0x04,0x38,0x04,0x02}, // 0x59
  93. {0x00,0x32,0x2A,0x2A,0x26}, // 0x5A
  94. {0x00,0x00,0x7F,0x41,0x00}, // 0x5B
  95. {0x01,0x06,0x18,0x60,0x00}, // 0x5C
  96. {0x00,0x41,0x7F,0x00,0x00}, // 0x5D
  97. {0x18,0x06,0x01,0x06,0x18}, // 0x5E
  98. {0x40,0x40,0x40,0x40,0x40}, // 0x5F
  99. {0x00,0x01,0x02,0x00,0x00}, // 0x60
  100. {0x00,0x34,0x34,0x38,0x20}, // 0x61
  101. {0x00,0x3F,0x24,0x24,0x18}, // 0x62
  102. {0x00,0x18,0x24,0x24,0x00}, // 0x63
  103. {0x18,0x24,0x24,0x3F,0x00}, // 0x64
  104. {0x00,0x18,0x2C,0x28,0x00}, // 0x65
  105. {0x00,0x04,0x3E,0x05,0x05}, // 0x66
  106. {0x00,0x58,0x54,0x54,0x3C}, // 0x67
  107. {0x00,0x3F,0x08,0x04,0x38}, // 0x68
  108. {0x00,0x04,0x3D,0x00,0x00}, // 0x69
  109. {0x00,0x44,0x44,0x3D,0x00}, // 0x6A
  110. {0x00,0x3F,0x08,0x14,0x20}, // 0x6B
  111. {0x00,0x01,0x3F,0x00,0x00}, // 0x6C
  112. {0x3C,0x08,0x3C,0x08,0x3C}, // 0x6D
  113. {0x00,0x3C,0x08,0x04,0x38}, // 0x6E
  114. {0x00,0x18,0x24,0x24,0x18}, // 0x6F
  115. {0x00,0x7C,0x24,0x24,0x18}, // 0x70
  116. {0x18,0x24,0x24,0x7C,0x00}, // 0x71
  117. {0x00,0x3C,0x08,0x04,0x00}, // 0x72
  118. {0x00,0x28,0x2C,0x14,0x00}, // 0x73
  119. {0x00,0x04,0x1E,0x24,0x04}, // 0x74
  120. {0x00,0x1C,0x20,0x10,0x3C}, // 0x75
  121. {0x00,0x0C,0x30,0x30,0x0C}, // 0x76
  122. {0x0C,0x30,0x1C,0x30,0x0C}, // 0x77
  123. {0x00,0x24,0x18,0x18,0x24}, // 0x78
  124. {0x40,0x4C,0x70,0x30,0x0C}, // 0x79
  125. {0x00,0x34,0x2C,0x2C,0x00}, // 0x7A
  126. {0x00,0x08,0x36,0x41,0x00}, // 0x7B
  127. {0x00,0x00,0x7F,0x00,0x00}, // 0x7C
  128. {0x00,0x41,0x36,0x08,0x00}, // 0x7D
  129. {0x10,0x08,0x08,0x10,0x08}, // 0x7E
  130. {0x00,0x3C,0x22,0x3C,0x00}, // 0x7F
  131. #if 0
  132. {0x00,0x1C,0xA2,0x62,0x22}, // 0x80
  133. {0x00,0x1D,0x20,0x10,0x3D}, // 0x81
  134. {0x00,0x18,0x2C,0x2A,0x01}, // 0x82
  135. {0x00,0x36,0x35,0x39,0x22}, // 0x83
  136. {0x00,0x35,0x34,0x39,0x20}, // 0x84
  137. {0x01,0x36,0x34,0x38,0x20}, // 0x85
  138. {0x00,0x36,0x35,0x3A,0x20}, // 0x86
  139. {0x00,0x18,0xA4,0x64,0x00}, // 0x87
  140. {0x00,0x1A,0x2D,0x29,0x02}, // 0x88
  141. {0x00,0x19,0x2C,0x29,0x00}, // 0x89
  142. {0x01,0x1A,0x2C,0x28,0x00}, // 0x8A
  143. {0x00,0x05,0x3C,0x01,0x00}, // 0x8B
  144. {0x00,0x06,0x3D,0x01,0x02}, // 0x8C
  145. {0x01,0x06,0x3C,0x00,0x00}, // 0x8D
  146. {0x30,0x1D,0x12,0x1D,0x30}, // 0x8E
  147. {0x30,0x1A,0x15,0x1A,0x30}, // 0x8F
  148. {0x00,0x3E,0x2A,0x2A,0x01}, // 0x90
  149. {0x34,0x14,0x18,0x2C,0x28}, // 0x91
  150. {0x30,0x1C,0x12,0x3E,0x2A}, // 0x92
  151. {0x02,0x19,0x25,0x26,0x18}, // 0x93
  152. {0x00,0x19,0x24,0x24,0x19}, // 0x94
  153. {0x01,0x1A,0x24,0x24,0x18}, // 0x95
  154. {0x02,0x1D,0x21,0x12,0x3C}, // 0x96
  155. {0x00,0x1D,0x22,0x10,0x3C}, // 0x97
  156. {0x40,0x4D,0x70,0x30,0x0D}, // 0x98
  157. {0x1D,0x22,0x22,0x22,0x1D}, // 0x99
  158. {0x01,0x1E,0x20,0x21,0x1E}, // 0x9A
  159. {0x00,0x58,0x34,0x2C,0x1A}, // 0x9B
  160. {0x10,0x3C,0x2A,0x20,0x00}, // 0x9C
  161. {0x5C,0x32,0x2A,0x26,0x1D}, // 0x9D
  162. {0x00,0x24,0x18,0x18,0x24}, // 0x9E
  163. {0x00,0x48,0x3E,0x09,0x00}, // 0x9F
  164. {0x00,0x34,0x34,0x3A,0x21}, // 0xA0
  165. {0x00,0x04,0x3C,0x02,0x01}, // 0xA1
  166. {0x00,0x18,0x24,0x26,0x19}, // 0xA2
  167. {0x00,0x1C,0x20,0x12,0x3D}, // 0xA3
  168. {0x00,0x3D,0x09,0x05,0x39}, // 0xA4
  169. {0x01,0x3F,0x05,0x09,0x3F}, // 0xA5
  170. {0x00,0x1D,0x15,0x1E,0x00}, // 0xA6
  171. {0x00,0x0E,0x11,0x0E,0x00}, // 0xA7
  172. {0x00,0x40,0x5A,0x20,0x00}, // 0xA8
  173. {0x1E,0x21,0x3F,0x37,0x1E}, // 0xA9
  174. {0x00,0x08,0x08,0x38,0x00}, // 0xAA
  175. {0x21,0x17,0x0C,0x36,0x2D}, // 0xAB
  176. {0x21,0x17,0x08,0x16,0x39}, // 0xAC
  177. {0x00,0x00,0x74,0x00,0x00}, // 0xAD
  178. {0x08,0x14,0x2A,0x14,0x22}, // 0xAE
  179. {0x22,0x14,0x2A,0x14,0x08}, // 0xAF
  180. {0x55,0x00,0x55,0x00,0x55}, // 0xB0
  181. {0x55,0xAA,0x55,0xAA,0x55}, // 0xB1
  182. {0xFF,0x55,0xFF,0x55,0xFF}, // 0xB2
  183. {0x00,0x00,0xFF,0x00,0x00}, // 0xB3
  184. {0x08,0x08,0xFF,0x00,0x00}, // 0xB4
  185. {0x30,0x1C,0x12,0x1D,0x30}, // 0xB5
  186. {0x30,0x1A,0x15,0x19,0x32}, // 0xB6
  187. {0x30,0x1D,0x12,0x1C,0x30}, // 0xB7
  188. {0x3E,0x41,0x5D,0x55,0x3E}, // 0xB8
  189. {0x14,0xF7,0x00,0xFF,0x00}, // 0xB9
  190. {0x00,0xFF,0x00,0xFF,0x00}, // 0xBA
  191. {0x14,0xF4,0x04,0xFC,0x00}, // 0xBB
  192. {0x14,0x17,0x10,0x1F,0x00}, // 0xBC
  193. {0x00,0x1C,0x36,0x14,0x00}, // 0xBD
  194. {0x02,0x14,0x38,0x14,0x02}, // 0xBE
  195. {0x08,0x08,0xF8,0x00,0x00}, // 0xBF
  196. {0x00,0x00,0x0F,0x08,0x08}, // 0xC0
  197. {0x08,0x08,0x0F,0x08,0x08}, // 0xC1
  198. {0x08,0x08,0xF8,0x08,0x08}, // 0xC2
  199. {0x00,0x00,0xFF,0x08,0x08}, // 0xC3
  200. {0x08,0x08,0x08,0x08,0x08}, // 0xC4
  201. {0x08,0x08,0xFF,0x08,0x08}, // 0xC5
  202. {0x02,0x35,0x35,0x3A,0x21}, // 0xC6
  203. {0x32,0x19,0x15,0x1A,0x31}, // 0xC7
  204. {0x00,0x1F,0x10,0x17,0x14}, // 0xC8
  205. {0x00,0xFC,0x04,0xF4,0x14}, // 0xC9
  206. {0x14,0x17,0x10,0x17,0x14}, // 0xCA
  207. {0x14,0xF4,0x04,0xF4,0x14}, // 0xCB
  208. {0x00,0xFF,0x00,0xF7,0x14}, // 0xCC
  209. {0x14,0x14,0x14,0x14,0x14}, // 0xCD
  210. {0x14,0xF7,0x00,0xF7,0x14}, // 0xCE
  211. {0x22,0x1C,0x14,0x1C,0x22}, // 0xCF
  212. {0x19,0x25,0x27,0x1D,0x00}, // 0xD0
  213. {0x08,0x3E,0x2A,0x22,0x1C}, // 0xD1
  214. {0x00,0x3F,0x2B,0x2B,0x00}, // 0xD2
  215. {0x01,0x3E,0x2A,0x2A,0x01}, // 0xD3
  216. {0x01,0x3E,0x2A,0x2A,0x00}, // 0xD4
  217. {0x00,0x04,0x3C,0x00,0x00}, // 0xD5
  218. {0x00,0x22,0x3E,0x22,0x01}, // 0xD6
  219. {0x00,0x23,0x3F,0x23,0x00}, // 0xD7
  220. {0x01,0x22,0x3E,0x22,0x01}, // 0xD8
  221. {0x08,0x08,0x0F,0x00,0x00}, // 0xD9
  222. {0x00,0x00,0xF8,0x08,0x08}, // 0xDA
  223. {0xFF,0xFF,0xFF,0xFF,0xFF}, // 0xDB
  224. {0xF0,0xF0,0xF0,0xF0,0xF0}, // 0xDC
  225. {0x00,0x00,0xE7,0x00,0x00}, // 0xDD
  226. {0x01,0x22,0x3E,0x22,0x00}, // 0xDE
  227. {0x0F,0x0F,0x0F,0x0F,0x0F}, // 0xDF
  228. {0x1C,0x22,0x22,0x22,0x1D}, // 0xE0
  229. {0x00,0x3E,0x01,0x2E,0x10}, // 0xE1
  230. {0x1C,0x23,0x23,0x23,0x1C}, // 0xE2
  231. {0x1D,0x22,0x22,0x22,0x1C}, // 0xE3
  232. {0x02,0x19,0x25,0x26,0x19}, // 0xE4
  233. {0x1D,0x23,0x23,0x23,0x1C}, // 0xE5
  234. {0x00,0x7C,0x20,0x10,0x3C}, // 0xE6
  235. {0x00,0x7F,0x24,0x24,0x18}, // 0xE7
  236. {0x00,0x3E,0x14,0x14,0x08}, // 0xE8
  237. {0x1E,0x20,0x20,0x1E,0x01}, // 0xE9
  238. {0x00,0x1F,0x21,0x21,0x1F}, // 0xEA
  239. {0x01,0x1E,0x20,0x20,0x1E}, // 0xEB
  240. {0x40,0x4C,0x30,0x32,0x0D}, // 0xEC
  241. {0x02,0x04,0x3A,0x05,0x02}, // 0xED
  242. {0x01,0x01,0x01,0x01,0x01}, // 0xEE
  243. {0x00,0x00,0x02,0x01,0x00}, // 0xEF
  244. {0x00,0x08,0x08,0x08,0x00}, // 0xF0
  245. {0x00,0x28,0x3C,0x28,0x00}, // 0xF1
  246. {0xA0,0xA0,0xA0,0xA0,0xA0}, // 0xF2
  247. {0x2B,0x1F,0x08,0x16,0x39}, // 0xF3
  248. {0x06,0x7F,0x01,0x7F,0x00}, // 0xF4
  249. {0x00,0x4A,0x55,0x29,0x00}, // 0xF5
  250. {0x00,0x08,0x2A,0x08,0x00}, // 0xF6
  251. {0x00,0x80,0x40,0x00,0x00}, // 0xF7
  252. {0x00,0x06,0x09,0x09,0x06}, // 0xF8
  253. {0x00,0x01,0x00,0x01,0x00}, // 0xF9
  254. {0x00,0x00,0x08,0x00,0x00}, // 0xFA
  255. {0x00,0x11,0x1F,0x10,0x00}, // 0xFB
  256. {0x00,0x15,0x15,0x0A,0x00}, // 0xFC
  257. {0x00,0x19,0x15,0x12,0x00}, // 0xFD
  258. {0x00,0x3C,0x3C,0x3C,0x3C}, // 0xFE
  259. {0x00,0x00,0x00,0x00,0x00} // 0xFF
  260. #endif
  261. };