Added so Labels are always there

This commit is contained in:
Joseph Bryant 2024-04-21 22:31:42 -04:00
parent 859b9f7781
commit 21a33a8cdc

9
lcd.c
View File

@ -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);