I have a Teensy LC which I ordered through sparkfun. I also have an arduino uno for comparison.
This is the code I am trying to run:
When I run it on the arduino, it works as expected - it prints out the frame every 1/4th of a second, and the numbers are in sequential order.
When I compile and upload the code to the Teensy LC, it prints nothing.
If I change the delay to 50, it prints things out, but in bursts and not in sequential order:
while the arduino continues to operate as expected.
Is this due to some physical limitation of the board, or a difference in the implementation of the USB serial connection?
This is the code I am trying to run:
Code:
void setup()
{
Serial.begin(9600);
}
int my_frame = 0;
void loop()
{
Serial.print("frame: ");
Serial.println(my_frame);
my_frame += 1;
delay(250);
}
When I run it on the arduino, it works as expected - it prints out the frame every 1/4th of a second, and the numbers are in sequential order.
When I compile and upload the code to the Teensy LC, it prints nothing.
If I change the delay to 50, it prints things out, but in bursts and not in sequential order:
frame: 73
frame: 76
frame: 77
frame: 78
frame: 79
frame: 92
frame: 101
frame: 136
frame: 137
frame: 138
frame: 139
frame: 143
while the arduino continues to operate as expected.
Is this due to some physical limitation of the board, or a difference in the implementation of the USB serial connection?