For Teensy 4.x: Is it possible to switch pin 13 to off or low during boot?

Status
Not open for further replies.

Frank1119

Member
It is rather a cosmetic issue, but sometimes there are easy solutions for these kind of problems: I want to use pin 13 as an output to control a led, but during the boot of the Teensy it is lit. Is it possible to alter this behaviour?

‘No’ is also a valid answer 😀

Thanks
 
With this (empty) code, the orange LED is not lit during boot:
Code:
void setup() {
  // put your setup code here, to run once:
}

void loop() {
  // put your main code here, to run repeatedly:
}

So I assume your code turns it on somewhere?

Paul
 
When measuring the voltage on pin 13 with a DVM, the LED very dimly lit... pin is floating I guess.
This code definitely does not turn on the LED during boot:
Code:
void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
  digitalWrite(LED_BUILTIN, LOW);
}

void loop() {
}

With boot I mean plugging in the Teensy 4.0 into a USB port.
Or do you see another phenomenon?

Paul
 
I think I’m downright stupid. Rather an old project. I think I programmed this led to light up during start. Mea culpa.

Thanks
 
Status
Not open for further replies.
Back
Top