add: bit map

This commit is contained in:
but0n 2016-12-20 22:20:37 +08:00
parent d8ae32170e
commit cf769e8725

View File

@ -3,6 +3,14 @@
// 1110 xxxx : 10xx xxxx : 10xx xxxx - UTF-8
// 0x2800 - braille unicode offset
// 0010 1000 : 0000 0000
const char bitmap[2][4] = {
{0x01, 0x08},
{0x02, 0x10},
{0x04, 0x20},
{0x40, 0x80}
}
void draw(unsigned char uni) { //unicode to UTF-8
uart_sendData(0xE2); //First byte must be 0xE2
uart_sendData(0xA0 | ((uni>>6) & 0b00000011));