mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Rough pass expanding print
This commit is contained in:
@@ -236,8 +236,17 @@ void OLED::setRotation(bool leftHanded) {
|
|||||||
|
|
||||||
// print a string to the current cursor location
|
// print a string to the current cursor location
|
||||||
void OLED::print(const char *str) {
|
void OLED::print(const char *str) {
|
||||||
|
uint16_t cache = 0;
|
||||||
while (str[0]) {
|
while (str[0]) {
|
||||||
|
if (str[0] >= 0xF0) {
|
||||||
|
cache = static_cast<uint16_t>(str[0] & 0x0F) << 8;
|
||||||
|
} else if (cache != 0) {
|
||||||
|
cache |= str[0];
|
||||||
|
drawChar(cache);
|
||||||
|
cache = 0;
|
||||||
|
} else {
|
||||||
drawChar(str[0]);
|
drawChar(str[0]);
|
||||||
|
}
|
||||||
str++;
|
str++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -x
|
||||||
|
|
||||||
TRANSLATION_DIR="../Translations"
|
TRANSLATION_DIR="../Translations"
|
||||||
TRANSLATION_SCRIPT="make_translation.py"
|
TRANSLATION_SCRIPT="make_translation.py"
|
||||||
|
|||||||
Reference in New Issue
Block a user