diff --git a/ledy.ino b/ledy.ino index db37e16..dd31f27 100644 --- a/ledy.ino +++ b/ledy.ino @@ -71,7 +71,7 @@ void drawTextNodes(bool reset_cursor = true) } } -void scrollAllScrollableTexts() +void scrollAllScrollableTexts(split_scroll_mode = false) { for (unsigned char i = 0; i < MAX_TEXT_NODES_COUNT; i++) { @@ -81,10 +81,8 @@ void scrollAllScrollableTexts() short y1 = text_nodes[i].pos_y; short x2 = text_nodes[i].pos_x + text_nodes[i].characterSize.width * text_nodes[i].character_count + text_nodes[i].character_count - 1; short y2 = text_nodes[i].pos_y + text_nodes[i].characterSize.height - 1; - // If the text is scrolling on the upper part of the screen, scroll it to the left. - if (text_nodes[i].pos_y < 7) + if (split_scroll_mode || text_nodes[i].pos_y < 7) { - // If the text is completely out of the screen, mark it as deleted. if (x2 < 0) { text_nodes[i].is_deleted = true; @@ -93,10 +91,8 @@ void scrollAllScrollableTexts() shiftGivenRectangleLeft(x1, y1, x2, y2, text_nodes[i].scroll_slowness); text_nodes[i].pos_x -= text_nodes[i].scroll_slowness; } - // If the text is scrolling on the lower part of the screen, scroll it to the right. else { - // If the text is completely out of the screen, mark it as deleted. if (x1 > PANEL_MAX_X) { text_nodes[i].is_deleted = true; diff --git a/maker.html b/maker.html index 2348daf..42e4a1a 100644 --- a/maker.html +++ b/maker.html @@ -5,174 +5,545 @@
- - -