Sorry. I forgot to insert my code:
The LED blinks once every 2 seconds, meaning the if(Serial) is evaluated as FALSE, meaning there is no Serial object to begin with.
Code:
/* LED Blink, Teensyduino Tutorial #1
http://www.pjrc.com/teensy/tutorial.html
This example code is in the public domain.
*/
// Teensy 2.0 has the LED on pin 11
// Teensy++ 2.0 has the LED on pin 6
// Teensy 3.x / Teensy LC have the LED on pin 13
const int ledPin = 13;
// the setup() method runs once, when the sketch starts
void setup() {
Serial.begin(9600);
Serial.println("START");
// initialize the digital pin as an output.
pinMode(ledPin, OUTPUT);
}
// the loop() methor runs over and over again,
// as long as the board has power
void loop() {
digitalWrite(ledPin, HIGH); // set the LED on
if(Serial)
{
Serial.println("B");
delay(500); // wait for a second
digitalWrite(ledPin, LOW); // set the LED off
delay(500); // wait for a second
}
else
{
delay(2000); // wait for a second
digitalWrite(ledPin, LOW); // set the LED off
delay(2000); // wait for a second
}
}