Scrolling for particular raw only #80
-
Hello, #include <LiquidCrystal.h> LiquidCrystal lcd(44,43, 42, 40, 39, 38, 37); Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS ); LiquidLine CTScreen_line(0, 0, "ANG CT DIA "); LiquidScreen CTScreen; void keypadEvent(KeypadEvent key)
} CTScreen.add_line(CTScreen_line); CTScreen.set_displayLineCount(3); CTScreen_line1.set_focusPosition(Position::LEFT); CTScreen_line1.attach_function(1, blankFunction); menu.update(); can you please review this code? give me some idea? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I assume that
The headline doesn't have a attached function. This means that when you switch focus (scroll), 2 lines get scrolled at once and you end up with the headline above the scroll-line again. |
Beta Was this translation helpful? Give feedback.
I assume that
LiquidLine CTScreen_line(0, 0, "ANG CT DIA ");
is your "headline". I also haven't figured out a way to scroll only one line, but with a work-around it is possible to "simulate" that only one line is scrolling. Just add the headline right before every scroll-line.The …