Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void UpdateLCDDisplay() {
- int iLenofLargeText = strlen (LargeText);
- if (iCursor==(iLenofLargeText - 1))
- {
- iCursor = 0;
- }
- lcd.setCursor (0, iLineNumber);
- if (iCursor < iLenofLargeText -16) {
- for (int iChar = iCursor; iChar < iCursor + 16; iChar++)
- {
- lcd.print(LargeText[iChar]);
- }
- }
- else
- {
- for (int iChar = iCursor; iChar < (iLenofLargeText - 1); iChar++)
- {
- lcd.print (LargeText[iChar]);
- }
- for (int iChar = 0; iChar <= 16 - (iLenofLargeText - iCursor); iChar++)
- {
- lcd.print (LargeText[iChar]);
- }
- }
- iCursor++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement