I am sure I am missing something extremely simple here. But why doesn't this code print "hi"?
When someFunc() is placed in the loop it works, but not in setup.
void setup() {
Serial.begin(115200);
delay(1000);
someFunc();
}
void loop() {
// put your main code here, to run repeatedly:
//someFunc();
}
void someFunc()
{
Serial.println("hi");
}
That did it. Thanks!
I also found that adding a delay(1000); after the Serial.begin worked. So it must be firing before the serial has initialized. I thought it was some weird scope issue.