File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -262,12 +262,19 @@ void updateDisplay()
262
262
modeRecordCustomChar = true ; // Change to this special mode
263
263
}
264
264
265
- // Display custom characters
266
- else if (incoming >= 35 && incoming <= 43 )
265
+ // Display custom characters, 8 characters allowed, 35 to 42 inclusive
266
+ else if (incoming >= 35 && incoming <= 42 )
267
267
{
268
268
SerLCD.write (byte (incoming - 35 )); // You write location zero to display customer char 0
269
269
}
270
+ // If we get a second special setting character, then write it to the display
271
+ // This allows us to print a pipe by escaping it as a double
272
+ else if (incoming == SPECIAL_SETTING) {
273
+ SerLCD.write (incoming);
270
274
275
+ currentFrame[characterCount++] = incoming; // Record this character to the display buffer
276
+ if (characterCount == settingLCDwidth * settingLCDlines) characterCount = 0 ; // Wrap condition
277
+ }
271
278
modeSetting = false ;
272
279
}
273
280
else if (modeTWI == true )
@@ -438,4 +445,4 @@ void displayFrameBuffer(void)
438
445
439
446
// Return the cursor to its original position
440
447
SerLCD.setCursor (characterCount % settingLCDwidth, characterCount / settingLCDwidth);
441
- }
448
+ }
You can’t perform that action at this time.
0 commit comments