From 21a33a8cdcc8944a5fa4e83d7005797ab25deaaa Mon Sep 17 00:00:00 2001 From: Joseph Bryant Date: Sun, 21 Apr 2024 22:31:42 -0400 Subject: [PATCH] Added so Labels are always there --- lcd.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lcd.c b/lcd.c index 3e18d80..4dd6a88 100644 --- a/lcd.c +++ b/lcd.c @@ -149,7 +149,7 @@ void displayNotes() { lcd_clear(); lcd_gotoxy(6, 2); - lcd_print("PLAY"); + lcd_print("PLAYING"); _delay_ms(1000); lcd_clear(); _delay_ms(1000); @@ -174,6 +174,8 @@ void displayNotes() { char singleChar[2] = {circularBuffer[i], '\0'}; lcd_gotoxy(17-bufferIndex+i ,1); lcd_print(singleChar); // Print the single character + lcd_gotoxy(6,2); + lcd_print("PLAYING"); } _delay_ms(1000); @@ -189,7 +191,7 @@ void displaySerialData() { static int bufferIndex = 0; lcd_clear(); lcd_gotoxy(3, 2); - lcd_print("RECORD"); + lcd_print("RECORDING"); _delay_ms(1000); lcd_clear(); _delay_ms(1000); @@ -213,7 +215,10 @@ void displaySerialData() { lcd_gotoxy(1,1); for (int i = 0; i <= bufferIndex-1; i++) { char singleChar[2] = {circularBuffer[bufferIndex- 1 - i], '\0'}; + lcd_gotoxy(i+1,1); lcd_print(singleChar); // Print the single character + lcd_gotoxy(3,2); + lcd_print("RECORDING"); } _delay_ms(1000);