The problem is that the Liquid Crystal LCD display only prints "f" on every row and every column.
When I tell it to print something, then the display prints "f" on every square(row, column) for a brief second, then each square shows three white bars stacked up parallel to each other (quite like an "=" sign except that there's one more bar on top").
I am also using a tmrpcm library, so I'm guessing that interrupts might have to do with this, but I have no idea how to solve the problem.
The link to the tmrpcm library is as follows: https://github.com/TMRh20/TMRpcm
Thank you so much. I need to get this done by tomorrow 8 A.M., so I'm pretty desperate.
#include <LiquidCrystal.h>
#include <SD.h> // need to include the SD library
//#define SD_ChipSelectPin 53 //example uses hardware SS pin 53 on Mega2560
#define SD_ChipSelectPin 10 //using digital pin 4 on arduino nano 328
#include <TMRpcm.h> // also need to include this library...
TMRpcm tmrpcm; // create an object for use in this sketch
char mychar;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
volatile int pauseOnOff;
void setup(){
tmrpcm.speakerPin = 9; //11 on Mega, 9 on Uno, Nano, etc
if (!SD.begin(SD_ChipSelectPin)) { // see if the card is present and can be initialized:
Serial.println("SD fail");
return; // don't do anything more if not
}
else{
Serial.println("success!");
}
tmrpcm.play("Closer.wav");
lcd.begin(16, 2);
lcd.print("hello, world!");
}
void loop(){
}