Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ class WipperSnapper_I2C_Driver_Out_CharLcd
message[cur_idx + 1] == 'n') {
cur_idx += 2; // Skip the '\n' character in the buffer
break; // and move to the next row
} else if (c == '\\' && cur_idx + 1 < message_length &&
message[cur_idx + 1] == 'r') {
cur_idx += 2; // Skip the '\r' character in the buffer
continue; // and continue writing on the same row
} else if (c == 194 && cur_idx + 1 < message_length &&
message[cur_idx + 1] == 176) {
cur_idx += 2; // Skip the degree symbol sequence in the buffer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ class WipperSnapper_I2C_Driver_Out_Ssd1306
// Skip to the next possible line
y_idx += line_height;
_display->setCursor(0, y_idx);
} else if (message[i] == '\\' && i + 1 < msg_size &&
message[i + 1] == 'r') {
// skip the \r character, continue to the next character
i++;
continue;
} else if (message[i] == 0xC2 && message[i + 1] == 0xB0) {
_display->write(char(248));
_display->display();
Expand Down
Loading