forked from PoliEcho-holding-org/kern
Updated README and added some new images
This commit is contained in:
+3
-4
@@ -51,13 +51,12 @@ void clear(uint8_t attr) {
|
||||
}
|
||||
|
||||
void printHex(uint8_t d, uint8_t attr) {
|
||||
char digits[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
|
||||
|
||||
char hexDigits[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
|
||||
uint8_t low = d & 0x0f;
|
||||
uint8_t high = (d & 0xf0) >> 4;
|
||||
|
||||
putc(digits[low], attr);
|
||||
putc(digits[high], attr);
|
||||
putc(hexDigits[low], attr);
|
||||
putc(hexDigits[high], attr);
|
||||
}
|
||||
|
||||
void setCursorPos(uint16_t offset) {
|
||||
|
||||
Reference in New Issue
Block a user