mirror of
https://github.com/avem-labs/Avem.git
synced 2023-09-01 15:18:49 +08:00
add: bit map
This commit is contained in:
parent
d8ae32170e
commit
cf769e8725
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user