1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

M5NanoC6、8x8の数字フォントを作って遊ぶ

Last updated at Posted at 2025-02-08

参考

目的
8x8のLED用のフォントを作って、
予定は、未定としては、8x8 LEDのSNTP時計を
作って遊ぶ。
フォントを新しくつくるのは、フォントにも著作権があってうるさいから

仕様
Edge2を使用する
画像のサイズは、8x64 x2個 (特に意味なし)
0,1,2,3,4,5,6,7,8,9
全体を使った丸文字
1は、ハネなし
6,7,9は、ポチあり
2,9以外、下丸が大きい

Edge2でフォントを各

o_coq804.jpg

o_coq805.jpg

image2cppで変換(後で手作業で少し編集)




// 'font8x8_0_9', 8x64px
unsigned char font8x8_0_9 [] = 
{

0x81, 0x7c, 0x7a, 0x76, 0x6e, 0x5e, 0x3e, 0x81, //0
0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, //1
0x81, 0x7e, 0xfe, 0xfe, 0xc1, 0xbf, 0x7f, 0x00, //2
0x81, 0x7e, 0xfe, 0xc0, 0xfe, 0xfe, 0x7e, 0x81, //3
0xe3, 0xdb, 0xbb, 0x7b, 0x00, 0xfb, 0xfb, 0xfb, //4
0x00, 0x7f, 0x7f, 0x01, 0xfe, 0xfe, 0x7e, 0x81, //5
0x81, 0x7e, 0x7f, 0x01, 0x7e, 0x7e, 0x7e, 0x81, //6
0x00, 0x7e, 0xfd, 0xfb, 0xf7, 0xef, 0xdf, 0xbf, //7
0x81, 0x7e, 0x7e, 0x81, 0x7e, 0x7e, 0x7e, 0x81, //8
0x81, 0x7e, 0x7e, 0x7e, 0x80, 0xfe, 0xfe, 0xfe, //9

};


1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?