Divert RX and TX leds to digital outputs?

Hi guys,
Quick question: how can I divert (or power simultaneously) the RX & TX led lights to digital outputs?
Thanks

Quick question: which board are you using?

@markd833 I'm using a Pro Micro. Thanks

What sort of pro micro? There are several.
The Arduino Pro Micro has two pins that are not brought out to the headers to control the LEDs. Therefore they are used internally as part of the TX & RX functions, so you can't use them yourself. If you tried to use them then they would be switched on and off by serial activity, so they would be no good to you.

Hi @Grumpy_Mike
I using a Pro Micro ATmega32U4 5V 16MHz.
Sorry, I didn't get it. Are you saying I cannot use the TX & RX LEDs externally?
I wouldn't mind switching them off if I manage to divert them to digital outputs.
Thanks

@emanuino
Try using:
LED_BUILTIN_RX
LED_BUILTIN_TX
However they will still blink when the serial port is used.

Yes that is what I am saying.

As I explained before you can't divert them to digital outputs because there use is controlled by the serial / usb stuff.

See Pro Micro & Fio V3 Hookup Guide - SparkFun Learn.

You would need to modify the bootloader and the code that handles the USB interface for sketches to stop those from driving the TX and RX leds. Note that the bootloader also drives the built-in 'L' LED, so you may want to disable that while you are at it.

A Pro Micro does not have a built-in L LED :wink:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.