JaredReabow
Well-known member
In the code below, if I do not put the analogRead function in the code, the Teensy wont show up via USB and I have to press the reset to upload new code.
However if I put the analogRead in, it functions without issue.
Any help would be appreciated.
However if I put the analogRead in, it functions without issue.
Any help would be appreciated.
Code:
#define randomVar 16
void setup()
{
Serial.begin(9600);
Serial4.begin(57600); //Baud Rate for AT-command Mode.
analogRead(randomVar );
Serial.println("*** ONLINE ***");
}
void loop()
{
if (Serial4.available()){
Serial.println(Serial4.readString());
}
if (Serial.available()){
Serial4.write(Serial.read());
tone(13,1000,40);
}
}