fixed blinkled fn: always switch LED port to output.
This commit is contained in:
@@ -38,6 +38,8 @@ DEBUG2:
|
|||||||
; @clobbers (R16, R18, R22, R24, R25)
|
; @clobbers (R16, R18, R22, R24, R25)
|
||||||
|
|
||||||
blinkLed:
|
blinkLed:
|
||||||
|
sbi LED_SIMPLE_DDR, LED_SIMPLE_PINNUM ; out
|
||||||
|
blinkLed_loop:
|
||||||
cbi LED_SIMPLE_PORT, LED_SIMPLE_PINNUM ; on
|
cbi LED_SIMPLE_PORT, LED_SIMPLE_PINNUM ; on
|
||||||
mov r22, r20
|
mov r22, r20
|
||||||
rcall waitForMultiple100ms ; (R252
|
rcall waitForMultiple100ms ; (R252
|
||||||
@@ -45,7 +47,7 @@ blinkLed:
|
|||||||
mov r22, r21
|
mov r22, r21
|
||||||
rcall waitForMultiple100ms ; (R22)
|
rcall waitForMultiple100ms ; (R22)
|
||||||
dec r19
|
dec r19
|
||||||
brne blinkLed
|
brne blinkLed_loop
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user