display_char.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. #ifndef DISPLAY_CHAR_H
  2. #define DISPLAY_CHAR_H
  3. #define display16X16_number { \
  4. display16X16_0, \
  5. display16X16_1, \
  6. display16X16_2, \
  7. display16X16_3, \
  8. display16X16_4, \
  9. display16X16_5, \
  10. display16X16_6, \
  11. display16X16_7, \
  12. display16X16_8, \
  13. display16X16_9 \
  14. }
  15. #define display16X16_0 { \
  16. 0b0000000000000000, \
  17. 0b0000011111100000, \
  18. 0b0000111111110000, \
  19. 0b0001100000011000, \
  20. 0b0011000000001100, \
  21. 0b0011000000001100, \
  22. 0b0110000000000110, \
  23. 0b0110000000000110, \
  24. 0b0110000000000110, \
  25. 0b0110000000000110, \
  26. 0b0011000000001100, \
  27. 0b0011000000001100, \
  28. 0b0001100000011000, \
  29. 0b0000111111110000, \
  30. 0b0000011111100000, \
  31. 0b0000000000000000 \
  32. }
  33. #define display16X16_1 { \
  34. 0b0000000000000000, \
  35. 0b0000000111000000, \
  36. 0b0000001111000000, \
  37. 0b0000011111000000, \
  38. 0b0000110111000000, \
  39. 0b0001100111000000, \
  40. 0b0000000111000000, \
  41. 0b0000000111000000, \
  42. 0b0000000111000000, \
  43. 0b0000000111000000, \
  44. 0b0000000111000000, \
  45. 0b0000000111000000, \
  46. 0b0000000111000000, \
  47. 0b0011111111111100, \
  48. 0b0011111111111100, \
  49. 0b0000000000000000 \
  50. }
  51. #define display16X16_2 { \
  52. 0b0000000000000000, \
  53. 0b0000011111110000, \
  54. 0b0000111111111000, \
  55. 0b0001110000011100, \
  56. 0b0011000000001100, \
  57. 0b0011000000011100, \
  58. 0b0000000000111000, \
  59. 0b0000000001110000, \
  60. 0b0000000011100000, \
  61. 0b0000000111000000, \
  62. 0b0000001110000000, \
  63. 0b0000011100000000, \
  64. 0b0000111000000000, \
  65. 0b0011111111111100, \
  66. 0b0011111111111100, \
  67. 0b0000000000000000 \
  68. }
  69. #define display16X16_3 { \
  70. 0b0000000000000000, \
  71. 0b0000011111110000, \
  72. 0b0000111111111000, \
  73. 0b0001110000011100, \
  74. 0b0011000000001100, \
  75. 0b0000000000011000, \
  76. 0b0000000001110000, \
  77. 0b0000000111110000, \
  78. 0b0000000111110000, \
  79. 0b0000000000011000, \
  80. 0b0000000000001100, \
  81. 0b0011000000001100, \
  82. 0b0001110000011100, \
  83. 0b0000111111111000, \
  84. 0b0000011111110000, \
  85. 0b0000000000000000 \
  86. }
  87. #define display16X16_4 { \
  88. 0b0000000000000000, \
  89. 0b0000000001110000, \
  90. 0b0000000011110000, \
  91. 0b0000000111110000, \
  92. 0b0000001111110000, \
  93. 0b0000011101110000, \
  94. 0b0000111001110000, \
  95. 0b0001110001110000, \
  96. 0b0011100001110000, \
  97. 0b0111000001110000, \
  98. 0b1111111111111100, \
  99. 0b1111111111111100, \
  100. 0b0000000001110000, \
  101. 0b0000000001110000, \
  102. 0b0000000001110000, \
  103. 0b0000000000000000 \
  104. }
  105. #define display16X16_5 { \
  106. 0b0000000000000000, \
  107. 0b0011111111111100, \
  108. 0b0011111111111100, \
  109. 0b0011000000000000, \
  110. 0b0011000000000000, \
  111. 0b0011000000000000, \
  112. 0b0011111111110000, \
  113. 0b0011111111111000, \
  114. 0b0011000000011100, \
  115. 0b0000000000001100, \
  116. 0b0000000000001100, \
  117. 0b0011000000011100, \
  118. 0b0011000000011000, \
  119. 0b0001111111111000, \
  120. 0b0000111111110000, \
  121. 0b0000000000000000 \
  122. }
  123. #define display16X16_6 { \
  124. 0b0000000000000000, \
  125. 0b0000001111110000, \
  126. 0b0000011111111000, \
  127. 0b0000111000011100, \
  128. 0b0001110000001100, \
  129. 0b0001100000000000, \
  130. 0b0011000000000000, \
  131. 0b0011001111110000, \
  132. 0b0011111000011100, \
  133. 0b0011100000001100, \
  134. 0b0011000000001100, \
  135. 0b0011000000001100, \
  136. 0b0011100000011100, \
  137. 0b0001111111111000, \
  138. 0b0000111111110000, \
  139. 0b0000000000000000 \
  140. }
  141. #define display16X16_7 { \
  142. 0b0000000000000000, \
  143. 0b0011111111111100, \
  144. 0b0011111111111100, \
  145. 0b0000000000011000, \
  146. 0b0000000000110000, \
  147. 0b0000000001100000, \
  148. 0b0000000011000000, \
  149. 0b0000000110000000, \
  150. 0b0000000110000000, \
  151. 0b0000001100000000, \
  152. 0b0000011000000000, \
  153. 0b0000011000000000, \
  154. 0b0000110000000000, \
  155. 0b0000110000000000, \
  156. 0b0000110000000000, \
  157. 0b0000000000000000 \
  158. }
  159. #define display16X16_8 { \
  160. 0b0000000000000000, \
  161. 0b0000011111110000, \
  162. 0b0000111111111000, \
  163. 0b0001110000011100, \
  164. 0b0001100000001100, \
  165. 0b0001100000001100, \
  166. 0b0000110000111000, \
  167. 0b0000011111110000, \
  168. 0b0000111111111000, \
  169. 0b0001100000011100, \
  170. 0b0011000000001100, \
  171. 0b0011000000001100, \
  172. 0b0001100000011100, \
  173. 0b0001111111111000, \
  174. 0b0000111111110000, \
  175. 0b0000000000000000 \
  176. }
  177. #define display16X16_9 { \
  178. 0b0000000000000000, \
  179. 0b0000011111110000, \
  180. 0b0000111111111000, \
  181. 0b0001110000011100, \
  182. 0b0011000000001100, \
  183. 0b0011000000001100, \
  184. 0b0011000000011100, \
  185. 0b0001111111111000, \
  186. 0b0000111111111000, \
  187. 0b0000000000011000, \
  188. 0b0000000000110000, \
  189. 0b0000000000110000, \
  190. 0b0000000001100000, \
  191. 0b0001111111000000, \
  192. 0b0001111110000000, \
  193. 0b0000000000000000 \
  194. }
  195. #define display16X16_A { \
  196. 0b0000000000000000, \
  197. 0b0000001111000000, \
  198. 0b0000011111100000, \
  199. 0b0000111001110000, \
  200. 0b0000110000110000, \
  201. 0b0001100000011000, \
  202. 0b0001100000011000, \
  203. 0b0001111111111000, \
  204. 0b0011111111111100, \
  205. 0b0011000000001100, \
  206. 0b0011000000001100, \
  207. 0b0011000000001100, \
  208. 0b0011000000001100, \
  209. 0b0111000000001110, \
  210. 0b0111000000001110, \
  211. 0b0000000000000000 \
  212. }
  213. #define display16X16_C { \
  214. 0b0000000000000000, \
  215. 0b0000001111110000, \
  216. 0b0000011111111000, \
  217. 0b0000111000011100, \
  218. 0b0001110000001100, \
  219. 0b0011100000000000, \
  220. 0b0011000000000000, \
  221. 0b0111000000000000, \
  222. 0b0111000000000000, \
  223. 0b0111000000000000, \
  224. 0b0011000000000000, \
  225. 0b0011100000000000, \
  226. 0b0001110000001100, \
  227. 0b0000111000011100, \
  228. 0b0000011111111000, \
  229. 0b0000001111110000 \
  230. }
  231. #define display16X16_V { \
  232. 0b0000000000000000, \
  233. 0b0110000000000110, \
  234. 0b0110000000000110, \
  235. 0b0111000000001110, \
  236. 0b0011000000001100, \
  237. 0b0011000000001100, \
  238. 0b0011100000011100, \
  239. 0b0001100000011000, \
  240. 0b0001100000011000, \
  241. 0b0000110000110000, \
  242. 0b0000110000110000, \
  243. 0b0000111001110000, \
  244. 0b0000011011100000, \
  245. 0b0000011111100000, \
  246. 0b0000001111000000, \
  247. 0b0000000000000000 \
  248. }
  249. #define display16X16_blank { \
  250. 0b0000000000000000, \
  251. 0b0000000000000000, \
  252. 0b0000000000000000, \
  253. 0b0000000000000000, \
  254. 0b0000000000000000, \
  255. 0b0000000000000000, \
  256. 0b0000000000000000, \
  257. 0b0000000000000000, \
  258. 0b0000000000000000, \
  259. 0b0000000000000000, \
  260. 0b0000000000000000, \
  261. 0b0000000000000000, \
  262. 0b0000000000000000, \
  263. 0b0000000000000000, \
  264. 0b0000000000000000, \
  265. 0b0000000000000000 \
  266. }
  267. #define display16X16_number_R { \
  268. display16X16_0_R, \
  269. display16X16_1_R, \
  270. display16X16_2_R, \
  271. display16X16_3_R, \
  272. display16X16_4_R, \
  273. display16X16_5_R, \
  274. display16X16_6_R, \
  275. display16X16_7_R, \
  276. display16X16_8_R, \
  277. display16X16_9_R \
  278. }
  279. #define display16X16_0_R { \
  280. 0b0000000000000000, \
  281. 0b0000001111000000, \
  282. 0b0000111111110000, \
  283. 0b0001110000111000, \
  284. 0b0011000000001100, \
  285. 0b0110000000000110, \
  286. 0b0110000000000110, \
  287. 0b0110000000000110, \
  288. 0b0110000000000110, \
  289. 0b0110000000000110, \
  290. 0b0110000000000110, \
  291. 0b0011000000001100, \
  292. 0b0001110000111000, \
  293. 0b0000111111110000, \
  294. 0b0000001111000000, \
  295. 0b0000000000000000 \
  296. }
  297. #define display16X16_1_R { \
  298. 0b0000000000000000, \
  299. 0b0000000000000000, \
  300. 0b0110000000000000, \
  301. 0b0110000000100000, \
  302. 0b0110000000110000, \
  303. 0b0110000000011000, \
  304. 0b0110000000001100, \
  305. 0b0111111111111110, \
  306. 0b0111111111111110, \
  307. 0b0111111111111110, \
  308. 0b0110000000000000, \
  309. 0b0110000000000000, \
  310. 0b0110000000000000, \
  311. 0b0110000000000000, \
  312. 0b0000000000000000, \
  313. 0b0000000000000000 \
  314. }
  315. #define display16X16_2_R { \
  316. 0b0000000000000000, \
  317. 0b0000000000000000, \
  318. 0b0110000000110000, \
  319. 0b0110000000111000, \
  320. 0b0111000000001100, \
  321. 0b0111100000001110, \
  322. 0b0111110000000110, \
  323. 0b0110111000000110, \
  324. 0b0110011100000110, \
  325. 0b0110001110000110, \
  326. 0b0110000111000110, \
  327. 0b0110000011101110, \
  328. 0b0110000001111100, \
  329. 0b0110000000111000, \
  330. 0b0000000000000000, \
  331. 0b0000000000000000 \
  332. }
  333. #define display16X16_3_R { \
  334. 0b0000000000000000, \
  335. 0b0000000000000000, \
  336. 0b0000100000010000, \
  337. 0b0001100000011000, \
  338. 0b0011000000001100, \
  339. 0b0111000000001110, \
  340. 0b0110000000000110, \
  341. 0b0110000110000110, \
  342. 0b0110000110000110, \
  343. 0b0110000111000110, \
  344. 0b0110000111000110, \
  345. 0b0111001111101110, \
  346. 0b0011111000111100, \
  347. 0b0001110000011000, \
  348. 0b0000000000000000, \
  349. 0b0000000000000000 \
  350. }
  351. #define display16X16_4_R { \
  352. 0b0000110000000000, \
  353. 0b0000111000000000, \
  354. 0b0000111100000000, \
  355. 0b0000111110000000, \
  356. 0b0000110111000000, \
  357. 0b0000110011100000, \
  358. 0b0000110001110000, \
  359. 0b0000110000111000, \
  360. 0b0000110000011100, \
  361. 0b0111111111111110, \
  362. 0b0111111111111110, \
  363. 0b0111111111111110, \
  364. 0b0000110000000000, \
  365. 0b0000110000000000, \
  366. 0b0000000000000000, \
  367. 0b0000000000000000 \
  368. }
  369. #define display16X16_5_R { \
  370. 0b0000000000000000, \
  371. 0b0000000000000000, \
  372. 0b0001100111111110, \
  373. 0b0011100111111110, \
  374. 0b0110000011000110, \
  375. 0b0110000011000110, \
  376. 0b0110000011000110, \
  377. 0b0110000011000110, \
  378. 0b0110000011000110, \
  379. 0b0110000011000110, \
  380. 0b0110000011000110, \
  381. 0b0111100111000110, \
  382. 0b0011111110000110, \
  383. 0b0000111100000110, \
  384. 0b0000000000000000, \
  385. 0b0000000000000000 \
  386. }
  387. #define display16X16_6_R { \
  388. 0b0000000000000000, \
  389. 0b0000000000000000, \
  390. 0b0001111111000000, \
  391. 0b0011111111110000, \
  392. 0b0111001100111000, \
  393. 0b0110000100011100, \
  394. 0b0110000110001110, \
  395. 0b0110000010000110, \
  396. 0b0110000010000110, \
  397. 0b0110000010000110, \
  398. 0b0110000010000110, \
  399. 0b0111000110001110, \
  400. 0b0011111100011100, \
  401. 0b0001111100011000, \
  402. 0b0000000000000000, \
  403. 0b0000000000000000 \
  404. }
  405. #define display16X16_7_R { \
  406. 0b0000000000000000, \
  407. 0b0000000000000000, \
  408. 0b0000000000000110, \
  409. 0b0000000000000110, \
  410. 0b0111000000000110, \
  411. 0b0111110000000110, \
  412. 0b0000111000000110, \
  413. 0b0000001110000110, \
  414. 0b0000000111000110, \
  415. 0b0000000001100110, \
  416. 0b0000000000110110, \
  417. 0b0000000000011110, \
  418. 0b0000000000001110, \
  419. 0b0000000000000110, \
  420. 0b0000000000000000, \
  421. 0b0000000000000000 \
  422. }
  423. #define display16X16_8_R { \
  424. 0b0000000000000000, \
  425. 0b0000000000000000, \
  426. 0b0000110000000000, \
  427. 0b0011111000111000, \
  428. 0b0111001101111100, \
  429. 0b0110000111001110, \
  430. 0b0110000110000110, \
  431. 0b0110000110000110, \
  432. 0b0110000110000110, \
  433. 0b0110000110000110, \
  434. 0b0110000111000110, \
  435. 0b0111001111001110, \
  436. 0b0011111101111100, \
  437. 0b0001111000111000, \
  438. 0b0000000000000000, \
  439. 0b0000000000000000 \
  440. }
  441. #define display16X16_9_R { \
  442. 0b0000000000000000, \
  443. 0b0000000000000000, \
  444. 0b0000000001110000, \
  445. 0b0110000011111000, \
  446. 0b0110000110001100, \
  447. 0b0110000110001110, \
  448. 0b0110000110000110, \
  449. 0b0110000110000110, \
  450. 0b0110000110000110, \
  451. 0b0011000110000110, \
  452. 0b0001110110000110, \
  453. 0b0000111111001110, \
  454. 0b0000001111111100, \
  455. 0b0000000001111000, \
  456. 0b0000000000000000, \
  457. 0b0000000000000000 \
  458. }
  459. #define display16X16_A_R { \
  460. 0b0000000000000000, \
  461. 0b0110000000000000, \
  462. 0b0111111100000000, \
  463. 0b0111111111100000, \
  464. 0b0000000111111000, \
  465. 0b0000000110011100, \
  466. 0b0000000110001110, \
  467. 0b0000000110000110, \
  468. 0b0000000110000110, \
  469. 0b0000000110001110, \
  470. 0b0000000110011100, \
  471. 0b0000000111111000, \
  472. 0b0111111111100000, \
  473. 0b0111111100000000, \
  474. 0b0110000000000000, \
  475. 0b0000000000000000 \
  476. }
  477. #define display16X16_C_R { \
  478. 0b0000000000000000, \
  479. 0b0000001110000000, \
  480. 0b0000111111100000, \
  481. 0b0001111111110000, \
  482. 0b0011100000111000, \
  483. 0b0111000000011100, \
  484. 0b1110000000001110, \
  485. 0b1100000000000110, \
  486. 0b1100000000000110, \
  487. 0b1100000000000110, \
  488. 0b1100000000000110, \
  489. 0b1110000000001110, \
  490. 0b0111000000011100, \
  491. 0b0011000000011000, \
  492. 0b0000000000000000, \
  493. 0b0000000000000000 \
  494. }
  495. #define display16X16_V_R { \
  496. 0b0000000000000000, \
  497. 0b0000000000001110, \
  498. 0b0000000001111110, \
  499. 0b0000000111111000, \
  500. 0b0000111111000000, \
  501. 0b0011111000000000, \
  502. 0b0111100000000000, \
  503. 0b0110000000000000, \
  504. 0b0111000000000000, \
  505. 0b0111100000000000, \
  506. 0b0011111000000000, \
  507. 0b0000111111000000, \
  508. 0b0000000111111000, \
  509. 0b0000000001111110, \
  510. 0b0000000000001110, \
  511. 0b0000000000000000 \
  512. }
  513. #endif