unitron_man
Member
Hi
New here.... I'm building an older power switch that was designed around a Teensy 2.0
I get a timeout error on the windows software so I thought I'd check the basics
1). I can program the firmware to the Teensy using ardiuno and it works
2). When I click on serial monitor I get error messages. Please see photos of the errors connecting to serial monitor. The 2 different errors are testing a usb2 port and usb3 port on the computer.
Here is the simple code
// the setup function runs once when you press reset or power the board
void setup() {
Serial.begin(9600);
// initialize digital pin LED_BUILTIN as an output.
pinMode(11, OUTPUT); // built in LED
pinMode(4, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(21, OUTPUT);
pinMode(24, OUTPUT);
}
int val;
// the loop function runs over and over again forever
void loop()
{
val = analogRead(0);
Serial.print("analog 0 is: ");
Serial.println(val);
delay(250);
digitalWrite(11, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(9, HIGH);
delay(500); // wait for a second
digitalWrite(11, LOW); // turn the LED off by making the voltage LOW
digitalWrite(9, LOW);
delay(100); // wait for a second
}
New here.... I'm building an older power switch that was designed around a Teensy 2.0
I get a timeout error on the windows software so I thought I'd check the basics
1). I can program the firmware to the Teensy using ardiuno and it works
2). When I click on serial monitor I get error messages. Please see photos of the errors connecting to serial monitor. The 2 different errors are testing a usb2 port and usb3 port on the computer.
Here is the simple code
// the setup function runs once when you press reset or power the board
void setup() {
Serial.begin(9600);
// initialize digital pin LED_BUILTIN as an output.
pinMode(11, OUTPUT); // built in LED
pinMode(4, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(21, OUTPUT);
pinMode(24, OUTPUT);
}
int val;
// the loop function runs over and over again forever
void loop()
{
val = analogRead(0);
Serial.print("analog 0 is: ");
Serial.println(val);
delay(250);
digitalWrite(11, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(9, HIGH);
delay(500); // wait for a second
digitalWrite(11, LOW); // turn the LED off by making the voltage LOW
digitalWrite(9, LOW);
delay(100); // wait for a second
}