mình đang muốn làm ma trận 16x32 chạy chữ
mình dùng RTB,đánh thử "sắc huyền hỏi ngã nặng" vào ô text rồi chọn create bitmap,bên cửa sổ bên kia chọn font mode nó ra thế này
#define BVH_NUM_CELLS 8
#define BVH_CELL_X 16
#define BVH_CELL_Y 16
#ifndef _bvh_mspace
#define _bvh_mspace // const // code // eeprom // etc...
#endif // _bvh_mspace
unsigned char _bvh_mspace FontData[8][32]= {
{ // Order 0, Character ' ', ASCII 32 (0x20)
0x00,0x00,
0x00,0x40,
0x00,0x80,
0x01,0x20,
0x01,0xC0,
0x00,0x00,
0x7B,0xC3,
0x08,0x26,
0x01,0xE4,
0x73,0x24,
0x0A,0x24,
0x0A,0x26,
0x73,0xE3,
0x00,0x00,
0x00,0x00,
0x00,0x00
},
{ // Order 1, Character ' ', ASCII 32 (0x20)
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x01,0x00,
0x01,0x00,
0x01,0x00,
0xC1,0xF2,
0x41,0x92,
0x01,0x12,
0x01,0x12,
0x01,0x12,
0x41,0x12,
0xC1,0x11,
0x00,0x00,
0x00,0x00,
0x00,0x00
},
{ // Order 2, Character ' ', ASCII 32 (0x20)
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x00,0x36,
0x00,0x0B,
0x00,0x00,
0x2C,0x4E,
0x2C,0xD9,
0x24,0x91,
0x26,0x9F,
0x23,0x90,
0x63,0x19,
0xE3,0x0F,
0x02,0x00,
0x02,0x00,
0x06,0x00
},
{ // Order 3, Character ' ', ASCII 32 (0x20)
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x00,0x04,
0x00,0x04,
0x00,0x04,
0x3E,0x07,
0x32,0x06,
0x22,0x04,
0x22,0x04,
0x22,0x04,
0x22,0x04,
0x22,0x04,
0x00,0x00,
0x00,0x00,
0x00,0x00
},
{ // Order 4, Character ' ', ASCII 32 (0x20)
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x03,0x00,
0x02,0x10,
0x00,0x00,
0xC7,0x10,
0x48,0x90,
0x48,0x90,
0x48,0x90,
0x48,0x90,
0x4C,0x90,
0x47,0x10,
0x00,0x00,
0x00,0x00,
0x00,0x00
},
{ // Order 5, Character ' ', ASCII 32 (0x20)
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x3E,0x3C,
0x32,0x64,
0x22,0x44,
0x22,0x44,
0x22,0x44,
0x22,0x44,
0x22,0x3C,
0x00,0x04,
0x00,0x44,
0x00,0x78
},
{ // Order 6, Character ' ', ASCII 32 (0x20)
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x68,0x00,
0xB8,0x00,
0x00,0x00,
0xF0,0x1F,
0x08,0x19,
0x78,0x11,
0xC8,0x11,
0x88,0x11,
0x88,0x11,
0xF8,0x11,
0x00,0x00,
0x00,0x00,
0x00,0x00
},
{ // Order 7, Character ' ', ASCII 32 (0x20)
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x12,0x00,
0x1C,0x00,
0x00,0x00,
0x3C,0x7C,
0x02,0x64,
0x1E,0x44,
0x32,0x44,
0x22,0x44,
0x22,0x44,
0x3E,0x44,
0x00,0x00,
0x0C,0x00,
0x00,0x00
}
};
//================================================== ====================
// X Position Increment Table (in Pixels)
unsigned char _bvh_mspace FontIncX[]= {
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10
};
mình ko hiểu nó nghĩa là gì và chẳng biết làm gì với nó,có ai giải thích vì sao ra được mấy mã trên và cách dùng với nó (copy phần nào vào code để nạp,bỏ phần nào,thêm biến gì,nối mạch như thế nào,quét hàng hay dọc,........ về cả phần cứng và phần mềm) để nó có thể chạy được trên ma trận led
cảm ơn
mình dùng RTB,đánh thử "sắc huyền hỏi ngã nặng" vào ô text rồi chọn create bitmap,bên cửa sổ bên kia chọn font mode nó ra thế này
#define BVH_NUM_CELLS 8
#define BVH_CELL_X 16
#define BVH_CELL_Y 16
#ifndef _bvh_mspace
#define _bvh_mspace // const // code // eeprom // etc...
#endif // _bvh_mspace
unsigned char _bvh_mspace FontData[8][32]= {
{ // Order 0, Character ' ', ASCII 32 (0x20)
0x00,0x00,
0x00,0x40,
0x00,0x80,
0x01,0x20,
0x01,0xC0,
0x00,0x00,
0x7B,0xC3,
0x08,0x26,
0x01,0xE4,
0x73,0x24,
0x0A,0x24,
0x0A,0x26,
0x73,0xE3,
0x00,0x00,
0x00,0x00,
0x00,0x00
},
{ // Order 1, Character ' ', ASCII 32 (0x20)
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x01,0x00,
0x01,0x00,
0x01,0x00,
0xC1,0xF2,
0x41,0x92,
0x01,0x12,
0x01,0x12,
0x01,0x12,
0x41,0x12,
0xC1,0x11,
0x00,0x00,
0x00,0x00,
0x00,0x00
},
{ // Order 2, Character ' ', ASCII 32 (0x20)
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x00,0x36,
0x00,0x0B,
0x00,0x00,
0x2C,0x4E,
0x2C,0xD9,
0x24,0x91,
0x26,0x9F,
0x23,0x90,
0x63,0x19,
0xE3,0x0F,
0x02,0x00,
0x02,0x00,
0x06,0x00
},
{ // Order 3, Character ' ', ASCII 32 (0x20)
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x00,0x04,
0x00,0x04,
0x00,0x04,
0x3E,0x07,
0x32,0x06,
0x22,0x04,
0x22,0x04,
0x22,0x04,
0x22,0x04,
0x22,0x04,
0x00,0x00,
0x00,0x00,
0x00,0x00
},
{ // Order 4, Character ' ', ASCII 32 (0x20)
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x03,0x00,
0x02,0x10,
0x00,0x00,
0xC7,0x10,
0x48,0x90,
0x48,0x90,
0x48,0x90,
0x48,0x90,
0x4C,0x90,
0x47,0x10,
0x00,0x00,
0x00,0x00,
0x00,0x00
},
{ // Order 5, Character ' ', ASCII 32 (0x20)
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x3E,0x3C,
0x32,0x64,
0x22,0x44,
0x22,0x44,
0x22,0x44,
0x22,0x44,
0x22,0x3C,
0x00,0x04,
0x00,0x44,
0x00,0x78
},
{ // Order 6, Character ' ', ASCII 32 (0x20)
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x68,0x00,
0xB8,0x00,
0x00,0x00,
0xF0,0x1F,
0x08,0x19,
0x78,0x11,
0xC8,0x11,
0x88,0x11,
0x88,0x11,
0xF8,0x11,
0x00,0x00,
0x00,0x00,
0x00,0x00
},
{ // Order 7, Character ' ', ASCII 32 (0x20)
0x00,0x00,
0x00,0x00,
0x00,0x00,
0x12,0x00,
0x1C,0x00,
0x00,0x00,
0x3C,0x7C,
0x02,0x64,
0x1E,0x44,
0x32,0x44,
0x22,0x44,
0x22,0x44,
0x3E,0x44,
0x00,0x00,
0x0C,0x00,
0x00,0x00
}
};
//================================================== ====================
// X Position Increment Table (in Pixels)
unsigned char _bvh_mspace FontIncX[]= {
0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10
};
mình ko hiểu nó nghĩa là gì và chẳng biết làm gì với nó,có ai giải thích vì sao ra được mấy mã trên và cách dùng với nó (copy phần nào vào code để nạp,bỏ phần nào,thêm biến gì,nối mạch như thế nào,quét hàng hay dọc,........ về cả phần cứng và phần mềm) để nó có thể chạy được trên ma trận led
cảm ơn
Comment