Skip to content

Print pipe #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 25, 2018
Merged
Changes from all commits
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
13 changes: 10 additions & 3 deletions firmware/OpenLCD/OpenLCD.ino
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,19 @@ void updateDisplay()
modeRecordCustomChar = true; //Change to this special mode
}

//Display custom characters
else if (incoming >= 35 && incoming <= 43)
//Display custom characters, 8 characters allowed, 35 to 42 inclusive
else if (incoming >= 35 && incoming <= 42)
{
SerLCD.write(byte(incoming - 35)); //You write location zero to display customer char 0
}
//If we get a second special setting character, then write it to the display
//This allows us to print a pipe by escaping it as a double
else if (incoming == SPECIAL_SETTING) {
SerLCD.write(incoming);

currentFrame[characterCount++] = incoming; //Record this character to the display buffer
if (characterCount == settingLCDwidth * settingLCDlines) characterCount = 0; //Wrap condition
}
modeSetting = false;
}
else if (modeTWI == true)
Expand Down Expand Up @@ -438,4 +445,4 @@ void displayFrameBuffer(void)

//Return the cursor to its original position
SerLCD.setCursor(characterCount % settingLCDwidth, characterCount / settingLCDwidth);
}
}