avr: more work on motion activated light module.
This commit is contained in:
@@ -62,12 +62,6 @@ MotionLight_Init:
|
|||||||
|
|
||||||
rcall motionLightReadConfFromEeprom
|
rcall motionLightReadConfFromEeprom
|
||||||
|
|
||||||
; debug
|
|
||||||
; ldi r16, 0x01
|
|
||||||
; sts motionLightSources+MOTIONLIGHT_SOURCE_OFFS_ADDR, r16
|
|
||||||
; ldi r16, 0x07
|
|
||||||
; sts motionLightSources+MOTIONLIGHT_SOURCE_OFFS_VALUEID, r16
|
|
||||||
|
|
||||||
ret
|
ret
|
||||||
; @end
|
; @end
|
||||||
|
|
||||||
@@ -156,6 +150,8 @@ MotionLight_OnPacketReceived_setRGBW:
|
|||||||
sts motionLightColor+1, r19
|
sts motionLightColor+1, r19
|
||||||
sts motionLightColor+2, r20
|
sts motionLightColor+2, r20
|
||||||
sts motionLightColor+3, r21
|
sts motionLightColor+3, r21
|
||||||
|
rcall motionLightStartTimer ; immediately ON with new color
|
||||||
|
rcall motionLightTurnOn
|
||||||
rjmp MotionLight_OnPacketReceived_sendAck
|
rjmp MotionLight_OnPacketReceived_sendAck
|
||||||
MotionLight_OnPacketReceived_setOnTime:
|
MotionLight_OnPacketReceived_setOnTime:
|
||||||
sts motionLightOnTime, r18
|
sts motionLightOnTime, r18
|
||||||
|
|||||||
Reference in New Issue
Block a user