Hi,
I just installed everything for Teensy 3.1 on my Linux (Kubuntu). I use the makefile from Sudar (https://github.com/sudar/Arduino-Makefile) and finally managed to upload using teensy_loader_cli like this:
Ok, now I successfully compiled this script:
It starts to blink, but now the strange thing:
Randomly, between about 10 to 30 seconds later, it starts to blink faster (somehow about double the speed). After a few seconds it turns back to normal. I tried with different delay-values but always the same. It looks like the speed of the loop() is varying between two different speeds.
Any idea what this may be?
Second question: How do I set the CPU speed of my Teensy 3.1 using the makefile?
Thank you,
Kukulkan
I just installed everything for Teensy 3.1 on my Linux (Kubuntu). I use the makefile from Sudar (https://github.com/sudar/Arduino-Makefile) and finally managed to upload using teensy_loader_cli like this:
Code:
teensy_loader_cli -mmcu=mk20dx256 -s -v $(OUT_PATH)Test.hex
Ok, now I successfully compiled this script:
Code:
const int ledPin = 13;
void setup() {
// initialize the digital pin as an output.
pinMode(ledPin, OUTPUT);
}
void loop() {
digitalWrite(ledPin, HIGH);
delay(300);
digitalWrite(ledPin, LOW);
delay(100);
}
It starts to blink, but now the strange thing:
Randomly, between about 10 to 30 seconds later, it starts to blink faster (somehow about double the speed). After a few seconds it turns back to normal. I tried with different delay-values but always the same. It looks like the speed of the loop() is varying between two different speeds.
Any idea what this may be?
Second question: How do I set the CPU speed of my Teensy 3.1 using the makefile?
Thank you,
Kukulkan