Repository navigation
Conversation
|
That is correct, D4 is A6 so pin 24 is useless and can be assigned to the other LED which is not used yet. I'd also vote for a |
|
Its such a simple fix, why dont you apply this? |
|
I don't think this fix is correct. Pin 24 was previously used for (virtual) pin "A6", which is the analog input mode on pin D4. This needs a duplicate pin number to be assigned to pin PD4 (as well as others), because So I believe that D24 must remain unchanged. Adding a pin for the TX led makes sense, though I'm not sure if it would be ok to add it at the end - some code might be assuming that the last |
|
Oh you are right. But why not use another pin for the led then? #define LED_BUILTIN_TX 30 |
|
As stated by @matthijskooijman the current pin assignment is correct. |
In Leonardo hardware pin assignment, the correspondence between bit mask and pin PD5 is missing, while PD4 is repeated as D24, so D24 should be PD5.
Atmega32U4 PD5 pin is XCK1/~CTS and it is connected to TX led on Leonardo board. After this patch, D24 is assigned to PD5 and these lines can blink TX led:
This bug was found by @xdesig (member of the Escornabot project :) This is his hardware unit test: https://www.youtube.com/watch?v=nClBTrmG7Sk