Spicy O'merta
Member
So, I'm attempting to use a VBscript to find the com port number of my teensy automatically, and this is a challenge on it's own, but it's made worse with this teensy issue I keep running into. Currently the teensy prints "Hello" after a few seconds:
So this works the first time, but for some reason it does not work on subsequent attempts. So the very first time I plug this in after the computer starts it prints "Hello" into the serial buffer like it should, but when I unplug it and plug it back in to run the test again it does not work. The Arduino IDE doesn't acknowledge that it it's connected (and won't open the serial monitor), also in the command line mode.com doesn't show the device even though it's plugged in.
I have used this Teensy before on other projects and it hasn't given me trouble till now. Also of note, I'm running it as a USB Keyboard/Mouse/Joystick/Serial device as the final project requires keyboard and serial functionality.
Code:
void setup()
{
delay(6000);
Serial.begin(9600);
Serial.write("Hello");
Serial.close
}
void loop()
{
}
So this works the first time, but for some reason it does not work on subsequent attempts. So the very first time I plug this in after the computer starts it prints "Hello" into the serial buffer like it should, but when I unplug it and plug it back in to run the test again it does not work. The Arduino IDE doesn't acknowledge that it it's connected (and won't open the serial monitor), also in the command line mode.com doesn't show the device even though it's plugged in.
I have used this Teensy before on other projects and it hasn't given me trouble till now. Also of note, I'm running it as a USB Keyboard/Mouse/Joystick/Serial device as the final project requires keyboard and serial functionality.