Format OLED
This commit is contained in:
@@ -239,10 +239,10 @@ void OLED::print(const char *str) {
|
|||||||
uint16_t page = 0;
|
uint16_t page = 0;
|
||||||
while (str[0]) {
|
while (str[0]) {
|
||||||
if (static_cast<uint8_t>(str[0]) >= 0xF0) {
|
if (static_cast<uint8_t>(str[0]) >= 0xF0) {
|
||||||
page = static_cast<uint16_t>(str[0]&0x0F);
|
page = static_cast<uint16_t>(str[0] & 0x0F);
|
||||||
} else if (page != 0) {
|
} else if (page != 0) {
|
||||||
page*=0xEF;
|
page *= 0xEF;
|
||||||
page +=static_cast<uint8_t>(str[0])-1;
|
page += static_cast<uint8_t>(str[0]) - 1;
|
||||||
drawChar(page);
|
drawChar(page);
|
||||||
page = 0;
|
page = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user