feat:(drawille) First Blood

This commit is contained in:
but0n 2016-12-20 16:38:03 +08:00
parent 9e3ffe0b89
commit d8541a6f63
2 changed files with 17 additions and 0 deletions

16
libs/include/drawille.h Normal file
View File

@ -0,0 +1,16 @@
#ifndef DRAWILLE_H
#define DRAWILLE_H
#include "uart.h"
// ---
// |0 3|
// |1 4|
// |2 5|
// |6 7|
// ---
#define BRAILLE_OFFSET 0x2800
#define PIXEL(x) 1<<(x)
#define DRAW(bit) BRAILLE_OFFSET + (bit)
#endif

1
libs/source/drawille.c Normal file
View File

@ -0,0 +1 @@
// Needn't this file yet