After following the getting started guide and installing Teensyduino I was able to upload and run the two provided blink sketches with no problems. Unfortunately now when I try to upload the basic blink sketch to any of my Arduinos I get one of these errors:
I think the drivers are messed up, but I can't figure out how to get them working again. I have tried two Arduino Nanos, an Arduino Mega, and an Arduino Nano all with the same results. Which is strange because throughout all of this, the Teensy stuff works fine. I did make sure to set the port and the board appropriately.
Another thing is that I now see an "unknown device" in my device manager. I think it showed up after installing the Teensy stuff, but I am not sure. It comes right back if I uninstall the device though.
I'm a total beginner to Teensy, so I'm hoping I've overlooked something simple.
Code:
avrdude: stk500_getsync() attempt 10 of 10: not in sync:
Code:
avrdude: ser_open(): can't set com-state
I think the drivers are messed up, but I can't figure out how to get them working again. I have tried two Arduino Nanos, an Arduino Mega, and an Arduino Nano all with the same results. Which is strange because throughout all of this, the Teensy stuff works fine. I did make sure to set the port and the board appropriately.
Another thing is that I now see an "unknown device" in my device manager. I think it showed up after installing the Teensy stuff, but I am not sure. It comes right back if I uninstall the device though.
I'm a total beginner to Teensy, so I'm hoping I've overlooked something simple.
Code:
/*
Blink
Turns an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
the correct LED pin independent of which board is used.
If you want to know what pin the on-board LED is connected to on your Arduino
model, check the Technical Specs of your board at:
https://www.arduino.cc/en/Main/Products
modified 8 May 2014
by Scott Fitzgerald
modified 2 Sep 2016
by Arturo Guadalupi
modified 8 Sep 2016
by Colby Newman
This example code is in the public domain.
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
*/
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}