PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
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.

277 line
8.3KB

  1. // This is the 'classic' fixed-space bitmap font for Adafruit_GFX since 1.0.
  2. // See gfxfont.h for newer custom bitmap font info.
  3. #ifndef FONT5X7_H
  4. #define FONT5X7_H
  5. #ifdef __AVR__
  6. #include <avr/io.h>
  7. #include <avr/pgmspace.h>
  8. #elif defined(ESP8266)
  9. #include <pgmspace.h>
  10. #else
  11. #define PROGMEM
  12. #endif
  13. // Standard ASCII 5x7 font
  14. static const unsigned char font[] PROGMEM = {
  15. 0x00, 0x00, 0x00, 0x00, 0x00,
  16. 0x3E, 0x5B, 0x4F, 0x5B, 0x3E,
  17. 0x3E, 0x6B, 0x4F, 0x6B, 0x3E,
  18. 0x1C, 0x3E, 0x7C, 0x3E, 0x1C,
  19. 0x18, 0x3C, 0x7E, 0x3C, 0x18,
  20. 0x1C, 0x57, 0x7D, 0x57, 0x1C,
  21. 0x1C, 0x5E, 0x7F, 0x5E, 0x1C,
  22. 0x00, 0x18, 0x3C, 0x18, 0x00,
  23. 0xFF, 0xE7, 0xC3, 0xE7, 0xFF,
  24. 0x00, 0x18, 0x24, 0x18, 0x00,
  25. 0xFF, 0xE7, 0xDB, 0xE7, 0xFF,
  26. 0x30, 0x48, 0x3A, 0x06, 0x0E,
  27. 0x26, 0x29, 0x79, 0x29, 0x26,
  28. 0x40, 0x7F, 0x05, 0x05, 0x07,
  29. 0x40, 0x7F, 0x05, 0x25, 0x3F,
  30. 0x5A, 0x3C, 0xE7, 0x3C, 0x5A,
  31. 0x7F, 0x3E, 0x1C, 0x1C, 0x08,
  32. 0x08, 0x1C, 0x1C, 0x3E, 0x7F,
  33. 0x14, 0x22, 0x7F, 0x22, 0x14,
  34. 0x5F, 0x5F, 0x00, 0x5F, 0x5F,
  35. 0x06, 0x09, 0x7F, 0x01, 0x7F,
  36. 0x00, 0x66, 0x89, 0x95, 0x6A,
  37. 0x60, 0x60, 0x60, 0x60, 0x60,
  38. 0x94, 0xA2, 0xFF, 0xA2, 0x94,
  39. 0x08, 0x04, 0x7E, 0x04, 0x08,
  40. 0x10, 0x20, 0x7E, 0x20, 0x10,
  41. 0x08, 0x08, 0x2A, 0x1C, 0x08,
  42. 0x08, 0x1C, 0x2A, 0x08, 0x08,
  43. 0x1E, 0x10, 0x10, 0x10, 0x10,
  44. 0x0C, 0x1E, 0x0C, 0x1E, 0x0C,
  45. 0x30, 0x38, 0x3E, 0x38, 0x30,
  46. 0x06, 0x0E, 0x3E, 0x0E, 0x06,
  47. 0x00, 0x00, 0x00, 0x00, 0x00,
  48. 0x00, 0x00, 0x5F, 0x00, 0x00,
  49. 0x00, 0x07, 0x00, 0x07, 0x00,
  50. 0x14, 0x7F, 0x14, 0x7F, 0x14,
  51. 0x24, 0x2A, 0x7F, 0x2A, 0x12,
  52. 0x23, 0x13, 0x08, 0x64, 0x62,
  53. 0x36, 0x49, 0x56, 0x20, 0x50,
  54. 0x00, 0x08, 0x07, 0x03, 0x00,
  55. 0x00, 0x1C, 0x22, 0x41, 0x00,
  56. 0x00, 0x41, 0x22, 0x1C, 0x00,
  57. 0x2A, 0x1C, 0x7F, 0x1C, 0x2A,
  58. 0x08, 0x08, 0x3E, 0x08, 0x08,
  59. 0x00, 0x80, 0x70, 0x30, 0x00,
  60. 0x08, 0x08, 0x08, 0x08, 0x08,
  61. 0x00, 0x00, 0x60, 0x60, 0x00,
  62. 0x20, 0x10, 0x08, 0x04, 0x02,
  63. 0x3E, 0x51, 0x49, 0x45, 0x3E,
  64. 0x00, 0x42, 0x7F, 0x40, 0x00,
  65. 0x72, 0x49, 0x49, 0x49, 0x46,
  66. 0x21, 0x41, 0x49, 0x4D, 0x33,
  67. 0x18, 0x14, 0x12, 0x7F, 0x10,
  68. 0x27, 0x45, 0x45, 0x45, 0x39,
  69. 0x3C, 0x4A, 0x49, 0x49, 0x31,
  70. 0x41, 0x21, 0x11, 0x09, 0x07,
  71. 0x36, 0x49, 0x49, 0x49, 0x36,
  72. 0x46, 0x49, 0x49, 0x29, 0x1E,
  73. 0x00, 0x00, 0x14, 0x00, 0x00,
  74. 0x00, 0x40, 0x34, 0x00, 0x00,
  75. 0x00, 0x08, 0x14, 0x22, 0x41,
  76. 0x14, 0x14, 0x14, 0x14, 0x14,
  77. 0x00, 0x41, 0x22, 0x14, 0x08,
  78. 0x02, 0x01, 0x59, 0x09, 0x06,
  79. 0x3E, 0x41, 0x5D, 0x59, 0x4E,
  80. 0x7C, 0x12, 0x11, 0x12, 0x7C,
  81. 0x7F, 0x49, 0x49, 0x49, 0x36,
  82. 0x3E, 0x41, 0x41, 0x41, 0x22,
  83. 0x7F, 0x41, 0x41, 0x41, 0x3E,
  84. 0x7F, 0x49, 0x49, 0x49, 0x41,
  85. 0x7F, 0x09, 0x09, 0x09, 0x01,
  86. 0x3E, 0x41, 0x41, 0x51, 0x73,
  87. 0x7F, 0x08, 0x08, 0x08, 0x7F,
  88. 0x00, 0x41, 0x7F, 0x41, 0x00,
  89. 0x20, 0x40, 0x41, 0x3F, 0x01,
  90. 0x7F, 0x08, 0x14, 0x22, 0x41,
  91. 0x7F, 0x40, 0x40, 0x40, 0x40,
  92. 0x7F, 0x02, 0x1C, 0x02, 0x7F,
  93. 0x7F, 0x04, 0x08, 0x10, 0x7F,
  94. 0x3E, 0x41, 0x41, 0x41, 0x3E,
  95. 0x7F, 0x09, 0x09, 0x09, 0x06,
  96. 0x3E, 0x41, 0x51, 0x21, 0x5E,
  97. 0x7F, 0x09, 0x19, 0x29, 0x46,
  98. 0x26, 0x49, 0x49, 0x49, 0x32,
  99. 0x03, 0x01, 0x7F, 0x01, 0x03,
  100. 0x3F, 0x40, 0x40, 0x40, 0x3F,
  101. 0x1F, 0x20, 0x40, 0x20, 0x1F,
  102. 0x3F, 0x40, 0x38, 0x40, 0x3F,
  103. 0x63, 0x14, 0x08, 0x14, 0x63,
  104. 0x03, 0x04, 0x78, 0x04, 0x03,
  105. 0x61, 0x59, 0x49, 0x4D, 0x43,
  106. 0x00, 0x7F, 0x41, 0x41, 0x41,
  107. 0x02, 0x04, 0x08, 0x10, 0x20,
  108. 0x00, 0x41, 0x41, 0x41, 0x7F,
  109. 0x04, 0x02, 0x01, 0x02, 0x04,
  110. 0x40, 0x40, 0x40, 0x40, 0x40,
  111. 0x00, 0x03, 0x07, 0x08, 0x00,
  112. 0x20, 0x54, 0x54, 0x78, 0x40,
  113. 0x7F, 0x28, 0x44, 0x44, 0x38,
  114. 0x38, 0x44, 0x44, 0x44, 0x28,
  115. 0x38, 0x44, 0x44, 0x28, 0x7F,
  116. 0x38, 0x54, 0x54, 0x54, 0x18,
  117. 0x00, 0x08, 0x7E, 0x09, 0x02,
  118. 0x18, 0xA4, 0xA4, 0x9C, 0x78,
  119. 0x7F, 0x08, 0x04, 0x04, 0x78,
  120. 0x00, 0x44, 0x7D, 0x40, 0x00,
  121. 0x20, 0x40, 0x40, 0x3D, 0x00,
  122. 0x7F, 0x10, 0x28, 0x44, 0x00,
  123. 0x00, 0x41, 0x7F, 0x40, 0x00,
  124. 0x7C, 0x04, 0x78, 0x04, 0x78,
  125. 0x7C, 0x08, 0x04, 0x04, 0x78,
  126. 0x38, 0x44, 0x44, 0x44, 0x38,
  127. 0xFC, 0x18, 0x24, 0x24, 0x18,
  128. 0x18, 0x24, 0x24, 0x18, 0xFC,
  129. 0x7C, 0x08, 0x04, 0x04, 0x08,
  130. 0x48, 0x54, 0x54, 0x54, 0x24,
  131. 0x04, 0x04, 0x3F, 0x44, 0x24,
  132. 0x3C, 0x40, 0x40, 0x20, 0x7C,
  133. 0x1C, 0x20, 0x40, 0x20, 0x1C,
  134. 0x3C, 0x40, 0x30, 0x40, 0x3C,
  135. 0x44, 0x28, 0x10, 0x28, 0x44,
  136. 0x4C, 0x90, 0x90, 0x90, 0x7C,
  137. 0x44, 0x64, 0x54, 0x4C, 0x44,
  138. 0x00, 0x08, 0x36, 0x41, 0x00,
  139. 0x00, 0x00, 0x77, 0x00, 0x00,
  140. 0x00, 0x41, 0x36, 0x08, 0x00,
  141. 0x02, 0x01, 0x02, 0x04, 0x02,
  142. 0x3C, 0x26, 0x23, 0x26, 0x3C,
  143. 0x1E, 0xA1, 0xA1, 0x61, 0x12,
  144. 0x3A, 0x40, 0x40, 0x20, 0x7A,
  145. 0x38, 0x54, 0x54, 0x55, 0x59,
  146. 0x21, 0x55, 0x55, 0x79, 0x41,
  147. 0x22, 0x54, 0x54, 0x78, 0x42, // a-umlaut
  148. 0x21, 0x55, 0x54, 0x78, 0x40,
  149. 0x20, 0x54, 0x55, 0x79, 0x40,
  150. 0x0C, 0x1E, 0x52, 0x72, 0x12,
  151. 0x39, 0x55, 0x55, 0x55, 0x59,
  152. 0x39, 0x54, 0x54, 0x54, 0x59,
  153. 0x39, 0x55, 0x54, 0x54, 0x58,
  154. 0x00, 0x00, 0x45, 0x7C, 0x41,
  155. 0x00, 0x02, 0x45, 0x7D, 0x42,
  156. 0x00, 0x01, 0x45, 0x7C, 0x40,
  157. 0x7D, 0x12, 0x11, 0x12, 0x7D, // A-umlaut
  158. 0xF0, 0x28, 0x25, 0x28, 0xF0,
  159. 0x7C, 0x54, 0x55, 0x45, 0x00,
  160. 0x20, 0x54, 0x54, 0x7C, 0x54,
  161. 0x7C, 0x0A, 0x09, 0x7F, 0x49,
  162. 0x32, 0x49, 0x49, 0x49, 0x32,
  163. 0x3A, 0x44, 0x44, 0x44, 0x3A, // o-umlaut
  164. 0x32, 0x4A, 0x48, 0x48, 0x30,
  165. 0x3A, 0x41, 0x41, 0x21, 0x7A,
  166. 0x3A, 0x42, 0x40, 0x20, 0x78,
  167. 0x00, 0x9D, 0xA0, 0xA0, 0x7D,
  168. 0x3D, 0x42, 0x42, 0x42, 0x3D, // O-umlaut
  169. 0x3D, 0x40, 0x40, 0x40, 0x3D,
  170. 0x3C, 0x24, 0xFF, 0x24, 0x24,
  171. 0x48, 0x7E, 0x49, 0x43, 0x66,
  172. 0x2B, 0x2F, 0xFC, 0x2F, 0x2B,
  173. 0xFF, 0x09, 0x29, 0xF6, 0x20,
  174. 0xC0, 0x88, 0x7E, 0x09, 0x03,
  175. 0x20, 0x54, 0x54, 0x79, 0x41,
  176. 0x00, 0x00, 0x44, 0x7D, 0x41,
  177. 0x30, 0x48, 0x48, 0x4A, 0x32,
  178. 0x38, 0x40, 0x40, 0x22, 0x7A,
  179. 0x00, 0x7A, 0x0A, 0x0A, 0x72,
  180. 0x7D, 0x0D, 0x19, 0x31, 0x7D,
  181. 0x26, 0x29, 0x29, 0x2F, 0x28,
  182. 0x26, 0x29, 0x29, 0x29, 0x26,
  183. 0x30, 0x48, 0x4D, 0x40, 0x20,
  184. 0x38, 0x08, 0x08, 0x08, 0x08,
  185. 0x08, 0x08, 0x08, 0x08, 0x38,
  186. 0x2F, 0x10, 0xC8, 0xAC, 0xBA,
  187. 0x2F, 0x10, 0x28, 0x34, 0xFA,
  188. 0x00, 0x00, 0x7B, 0x00, 0x00,
  189. 0x08, 0x14, 0x2A, 0x14, 0x22,
  190. 0x22, 0x14, 0x2A, 0x14, 0x08,
  191. 0x55, 0x00, 0x55, 0x00, 0x55, // #176 (25% block) missing in old code
  192. 0xAA, 0x55, 0xAA, 0x55, 0xAA, // 50% block
  193. 0xFF, 0x55, 0xFF, 0x55, 0xFF, // 75% block
  194. 0x00, 0x00, 0x00, 0xFF, 0x00,
  195. 0x10, 0x10, 0x10, 0xFF, 0x00,
  196. 0x14, 0x14, 0x14, 0xFF, 0x00,
  197. 0x10, 0x10, 0xFF, 0x00, 0xFF,
  198. 0x10, 0x10, 0xF0, 0x10, 0xF0,
  199. 0x14, 0x14, 0x14, 0xFC, 0x00,
  200. 0x14, 0x14, 0xF7, 0x00, 0xFF,
  201. 0x00, 0x00, 0xFF, 0x00, 0xFF,
  202. 0x14, 0x14, 0xF4, 0x04, 0xFC,
  203. 0x14, 0x14, 0x17, 0x10, 0x1F,
  204. 0x10, 0x10, 0x1F, 0x10, 0x1F,
  205. 0x14, 0x14, 0x14, 0x1F, 0x00,
  206. 0x10, 0x10, 0x10, 0xF0, 0x00,
  207. 0x00, 0x00, 0x00, 0x1F, 0x10,
  208. 0x10, 0x10, 0x10, 0x1F, 0x10,
  209. 0x10, 0x10, 0x10, 0xF0, 0x10,
  210. 0x00, 0x00, 0x00, 0xFF, 0x10,
  211. 0x10, 0x10, 0x10, 0x10, 0x10,
  212. 0x10, 0x10, 0x10, 0xFF, 0x10,
  213. 0x00, 0x00, 0x00, 0xFF, 0x14,
  214. 0x00, 0x00, 0xFF, 0x00, 0xFF,
  215. 0x00, 0x00, 0x1F, 0x10, 0x17,
  216. 0x00, 0x00, 0xFC, 0x04, 0xF4,
  217. 0x14, 0x14, 0x17, 0x10, 0x17,
  218. 0x14, 0x14, 0xF4, 0x04, 0xF4,
  219. 0x00, 0x00, 0xFF, 0x00, 0xF7,
  220. 0x14, 0x14, 0x14, 0x14, 0x14,
  221. 0x14, 0x14, 0xF7, 0x00, 0xF7,
  222. 0x14, 0x14, 0x14, 0x17, 0x14,
  223. 0x10, 0x10, 0x1F, 0x10, 0x1F,
  224. 0x14, 0x14, 0x14, 0xF4, 0x14,
  225. 0x10, 0x10, 0xF0, 0x10, 0xF0,
  226. 0x00, 0x00, 0x1F, 0x10, 0x1F,
  227. 0x00, 0x00, 0x00, 0x1F, 0x14,
  228. 0x00, 0x00, 0x00, 0xFC, 0x14,
  229. 0x00, 0x00, 0xF0, 0x10, 0xF0,
  230. 0x10, 0x10, 0xFF, 0x10, 0xFF,
  231. 0x14, 0x14, 0x14, 0xFF, 0x14,
  232. 0x10, 0x10, 0x10, 0x1F, 0x00,
  233. 0x00, 0x00, 0x00, 0xF0, 0x10,
  234. 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
  235. 0xF0, 0xF0, 0xF0, 0xF0, 0xF0,
  236. 0xFF, 0xFF, 0xFF, 0x00, 0x00,
  237. 0x00, 0x00, 0x00, 0xFF, 0xFF,
  238. 0x0F, 0x0F, 0x0F, 0x0F, 0x0F,
  239. 0x38, 0x44, 0x44, 0x38, 0x44,
  240. 0xFC, 0x4A, 0x4A, 0x4A, 0x34, // sharp-s or beta
  241. 0x7E, 0x02, 0x02, 0x06, 0x06,
  242. 0x02, 0x7E, 0x02, 0x7E, 0x02,
  243. 0x63, 0x55, 0x49, 0x41, 0x63,
  244. 0x38, 0x44, 0x44, 0x3C, 0x04,
  245. 0x40, 0x7E, 0x20, 0x1E, 0x20,
  246. 0x06, 0x02, 0x7E, 0x02, 0x02,
  247. 0x99, 0xA5, 0xE7, 0xA5, 0x99,
  248. 0x1C, 0x2A, 0x49, 0x2A, 0x1C,
  249. 0x4C, 0x72, 0x01, 0x72, 0x4C,
  250. 0x30, 0x4A, 0x4D, 0x4D, 0x30,
  251. 0x30, 0x48, 0x78, 0x48, 0x30,
  252. 0xBC, 0x62, 0x5A, 0x46, 0x3D,
  253. 0x3E, 0x49, 0x49, 0x49, 0x00,
  254. 0x7E, 0x01, 0x01, 0x01, 0x7E,
  255. 0x2A, 0x2A, 0x2A, 0x2A, 0x2A,
  256. 0x44, 0x44, 0x5F, 0x44, 0x44,
  257. 0x40, 0x51, 0x4A, 0x44, 0x40,
  258. 0x40, 0x44, 0x4A, 0x51, 0x40,
  259. 0x00, 0x00, 0xFF, 0x01, 0x03,
  260. 0xE0, 0x80, 0xFF, 0x00, 0x00,
  261. 0x08, 0x08, 0x6B, 0x6B, 0x08,
  262. 0x36, 0x12, 0x36, 0x24, 0x36,
  263. 0x06, 0x0F, 0x09, 0x0F, 0x06,
  264. 0x00, 0x00, 0x18, 0x18, 0x00,
  265. 0x00, 0x00, 0x10, 0x10, 0x00,
  266. 0x30, 0x40, 0xFF, 0x01, 0x01,
  267. 0x00, 0x1F, 0x01, 0x01, 0x1E,
  268. 0x00, 0x19, 0x1D, 0x17, 0x12,
  269. 0x00, 0x3C, 0x3C, 0x3C, 0x3C,
  270. 0x00, 0x00, 0x00, 0x00, 0x00 // #255 NBSP
  271. };
  272. #endif // FONT5X7_H