Skip to content

Commit 68bdf21

Browse files
committed
Move printTextwithKerning into Display.ino
1 parent 46360fc commit 68bdf21

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Firmware/RTK_Surveyor/Display.ino

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,18 @@ void paintBaseTempSurveyStarted()
911911
oled.print("0");
912912
}
913913

914+
//Given text, a position, and kerning, print text to display
915+
//This is helpful for squishing or stretching a string to appropriately fill the display
916+
void printTextwithKerning(const char *newText, uint8_t xPos, uint8_t yPos, uint8_t kerning)
917+
{
918+
for (int x = 0 ; x < strlen(newText) ; x++)
919+
{
920+
oled.setCursor(xPos, yPos);
921+
oled.print(newText[x]);
922+
xPos += kerning;
923+
}
924+
}
925+
914926
//Show transmission of RTCM packets
915927
void paintXmittingRTCM()
916928
{

Firmware/RTK_Surveyor/System.ino

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -537,18 +537,6 @@ bool isConnected(uint8_t deviceAddress)
537537
return false;
538538
}
539539

540-
//Given text, a position, and kerning, print text to display
541-
//This is helpful for squishing or stretching a string to appropriately fill the display
542-
void printTextwithKerning(const char *newText, uint8_t xPos, uint8_t yPos, uint8_t kerning)
543-
{
544-
for (int x = 0 ; x < strlen(newText) ; x++)
545-
{
546-
oled.setCursor(xPos, yPos);
547-
oled.print(newText[x]);
548-
xPos += kerning;
549-
}
550-
}
551-
552540
//Create a test file in file structure to make sure we can
553541
bool createTestFile()
554542
{

0 commit comments

Comments
 (0)