StockHuman
New member
Hello teensy people,
In the interest of making this question as scan-able as possible:
0. This code works where this does not.
1. You can reproduce this with no hardware beyond a single Teensy 4.0
2. I am on Windows 10
3. This code works as expected:
4. I am using PlatformIO, though the Arduino IDE refuses to connect as well.
--
In longer form, while programming I've come across a side effect of a revision of mine that I don't understand. With seemingly minor changes, the most recent version of what I'm uploading to the teensy no longer interacts with my PC. Indeed, automatic programming also breaks, and upon opening the serial monitor, I'm greeted with a "
" error.
The most significant changes are in the Keyboard.cpp file, and that's what I suspect is breaking things. I am trial-and-error'ing my way through every line, but I imagine I won't learn all that much from that approach. If you'd like to build this code yourself, the library not included in my repo is this observer template one.
Thank you kindly for any insights as to what's going on.
In the interest of making this question as scan-able as possible:
0. This code works where this does not.
1. You can reproduce this with no hardware beyond a single Teensy 4.0
2. I am on Windows 10
3. This code works as expected:
Code:
void setup() {Serial.begin(9600); } void loop() { Serial.println("test"); delay(200); }
--
In longer form, while programming I've come across a side effect of a revision of mine that I don't understand. With seemingly minor changes, the most recent version of what I'm uploading to the teensy no longer interacts with my PC. Indeed, automatic programming also breaks, and upon opening the serial monitor, I'm greeted with a "
Code:
could not open port u'COM3': could not open port u'COM3': WindowsError(2, 'The system cannot find the file specified.')
The most significant changes are in the Keyboard.cpp file, and that's what I suspect is breaking things. I am trial-and-error'ing my way through every line, but I imagine I won't learn all that much from that approach. If you'd like to build this code yourself, the library not included in my repo is this observer template one.
Thank you kindly for any insights as to what's going on.