user54800: I would like to know how can I change LED pin for avr_boot bootloader.
I can see there is option in variants folder but in the manual it mention "if using USE_LED adapt LED-pins in asmfunc.S" which is not clear. I am using pin PC3 how do I write it.

user7508: Near the top of asmfunc.S, you have these lines:
; LED Pins
#define DDR_SS  _SFR_IO_ADDR(DDRD), 5   // SS pin (PIN, PORT)
#define PORT_SS _SFR_IO_ADDR(PORTD), 5

#define DDR_PW  _SFR_IO_ADDR(DDRD), 6   // Power pin (PIN, PORT)
#define PORT_PW _SFR_IO_ADDR(PORTD), 6

These define the “write” or “slave select” LED pin as PD5 (registers
DDRD and PORTD, bit 5), and the “power” LED as PD6 (registers DDRD
and PORTD, bit  6).
These are the lines you have to change if using different pins. For
example, pin PC3 is: registers DDRC and PORTC, bit 3.

54800: <p>I would like to know how can I change LED pin for <a href="https://github.com/zevero/avr_boot" rel="nofollow noreferrer">avr_boot</a> bootloader.</p>
<p>I can see there is option in variants folder but in the manual it mention &quot;if using USE_LED adapt LED-pins in asmfunc.S&quot; which is not clear. I am using pin PC3 how do I write it.</p>
 7508: <p>Near the top of asmfunc.S, you have <a href="https://github.com/zevero/avr_boot/blob/v1.3.0/asmfunc.S#L9-L14" rel="nofollow noreferrer">these lines</a>:</p>
<pre class="lang-lisp prettyprint-override"><code>; LED Pins
#define DDR_SS  _SFR_IO_ADDR(DDRD), 5   // SS pin (PIN, PORT)
#define PORT_SS _SFR_IO_ADDR(PORTD), 5

#define DDR_PW  _SFR_IO_ADDR(DDRD), 6   // Power pin (PIN, PORT)
#define PORT_PW _SFR_IO_ADDR(PORTD), 6
</code></pre>
<p>These define the “write” or “slave select” LED pin as PD5 (registers
DDRD and PORTD, bit 5), and the “power” LED as PD6 (registers DDRD
and PORTD, bit  6).</p>
<p>These are the lines you have to change if using different pins. For
example, pin PC3 is: registers DDRC and PORTC, bit 3.</p>
