mborgerson
Well-known member
I'm working on a low-power logger that runs at 8MHz and draws about 5mA at 2600 bytes/second of data input. Since that is too low for USB to work, I upload data files and set up tests by setting some EEPROM values in another sketch that runs at 48MHz for reliable USB connection. The problem is, that when I change then clock speed in one sketch, it is also changed in the other sketch window. Both sketches are open on the desktop at the same time. The second sketch is opened from the file menu of the first sketch.
If I open two different instances of the Arduino (each using its own 207MB of memory), changing the tool menu in one window does not change it another, so that means that I can control the Teensy speeds separately.
Is this behavior (Tool options global to Arduino instance, rather than local to the sketch) the designed behavior or could it be changed in a new TeensyDuino version?
Now that I know the clock speed is tied to the Arduino instance, I can cope, but it was confusing when my configuration and upload program would not connect to USB because it had been changed to 8MHz clock when I wasn't looking.
If I open two different instances of the Arduino (each using its own 207MB of memory), changing the tool menu in one window does not change it another, so that means that I can control the Teensy speeds separately.
Is this behavior (Tool options global to Arduino instance, rather than local to the sketch) the designed behavior or could it be changed in a new TeensyDuino version?
Now that I know the clock speed is tied to the Arduino instance, I can cope, but it was confusing when my configuration and upload program would not connect to USB because it had been changed to 8MHz clock when I wasn't looking.