In setup() the I have Serial.begin(9600), but there is no text being displayed whenever I have the Serial Monitor print anything. I have tried moving the location of the print() functions (including directly under Serial.begin()), but nothing has worked.
#include <Stepper.h>
#include "CommandTest.h"
#include "BlueSide.h"
#include "RedSide.h"
#include "GreenSide.h"
#include "YellowSide.h"
#include "OrangeSide.h"
#include "WhiteSide.h"
void setup(){
Serial.begin(9600);
delay(1);
Serial.print("test"); //not displaying even this
char temp[] = "wwwwwwwww";
WhiteSide::setValue(temp);
strcpy(temp, "rrrrrrrrr");
RedSide::setValue(temp);
strcpy(temp, "bbbbbbbbb");
BlueSide::setValue(temp);
strcpy(temp, "ooooooooo");
OrangeSide::setValue(temp);
strcpy(temp, "ggggggggg");
GreenSide::setValue(temp);
strcpy(temp, "yyyyyyyyy");
YellowSide::setValue(temp);
delay(1000);
}
void printCube(){
Serial.println(WhiteSide::getArray());
Serial.println(RedSide::getArray());
Serial.println(BlueSide::getArray());
Serial.println(OrangeSide::getArray());
Serial.println(GreenSide::getArray());
Serial.println(YellowSide::getArray());
}
int main(){
CommandTest command;
Serial.print("start");//not displaying this
command.f();
printCube();//and it's not printing these arrays
delay(1000);
command.fp();
printCube();
delay(1000);
command.r();
printCube();
delay(1000);
command.rp();
printCube();
delay(1000);
command.l();
printCube();
delay(1000);
command.lp();
printCube();
delay(1000);
return 0;
}