alright so now i have it printing in uppercase but still no function and it serial prints both literal and upper case muiltiple times
#include <MotorDriver.h>
String readString;
void setup()
{
Serial.begin(57600);
}
void loop()
{
if (Serial.available())
{
char c = Serial.read(); //gets one byte from serial buffer
Serial.print(c);
readString += c; //makes the string readString
if (readString.length() > 0)
{
readString.toUpperCase();
Serial.println(readString);
if (readString == "SQUARE JUST PRESSED")
{
motordriver.goForward();
}
}
}
}