I would like to make simple visualisation of LED´s (ON/RX/TX) state by external LED on my panel.
I will use:
Arduino Leonardo
5mm, 5-9V LED (with resistor of course).
I was not able to find easy how-to. I know that D0 and D1 are marked as RX and TX but am I able to just connect GND - GND and + to RX/TX and be ready to go or I need to also add something into code?
For a start you need a resistor in series with any LED.
However the thing that mainly stops you is that on this processor the serial interface to the computer is virtual, that its software makes a USB interface to talk to the computer.
Yes pins 0 &1 carry serial data but only for the Serial1 port. So in order to see anything you will need to send everything to this other port as well.
The TX and RX lines are normally high and you will see nothing as an off blink is hard to spot. So you will have to connect your LED the other way round with it connected to the +ve and the RX pin.
That looks fine. What are you going to connect the RX line to? This will only receive signals from what you wire it up to. It will not receive anything from the computer, because you do not have hardware access to that.
I think I understad what do you mean, but I have 5 potentiometers and 7 buttons and I would like to see that communication is active and not check every single transmision.
In past I used to have problem with loosing communication - Arduino was ON but TX LED was OFF. So I would like to have this light infront of eyes all the time, atleast for testing.
I believe the first INIT line would need to be modified as well.
I may have time this afternoon to pull out my Leonardo to play around with this. I may have to do the re-direction within a copy of this h file and saved in the sketch folder
I Failed
I added the below lines to a test code: No Joy
I modified the lines in pins_Arduino.h and saved a copy in its sketchbook: No Joy
Rebooted the IDE and tried again: No Joy
No Joy = tx and rx activity still lights the built in LEDS