light_control: started working on new app (replaces ma_light).

This commit is contained in:
Martin Preuss
2026-08-07 00:41:32 +02:00
parent db53d0d905
commit 928ebe1ec7
11 changed files with 506 additions and 448 deletions

View File

@@ -0,0 +1,40 @@
; ***************************************************************************
; copyright : (C) 2024 by Martin Preuss
; email : martin@libchipcard.de
;
; ***************************************************************************
; * This file is part of the project "AqHome". *
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
#ifndef AQH_AVR_APPS_LIGHT_CONTROL_SEND_ASM
#define AQH_AVR_APPS_LIGHT_CONTROL_SEND_ASM
.cseg
; ---------------------------------------------------------------------------
; @routine sk6812ReportState
;
; @param R18 state (0=off, 1=on)
; @clobbers R16, R17, R18, R19, R20, R21, R22, R23, R24, R25, X
AppLightControl_ReportState:
ldi r17, VALUE_ID_LIGHTCONTROL_STATE
clr r19
ldi r20, 1
clr r21
ldi r22, AQHOME_VALUETYPE_ONOFF
push yl
push yh
rcall Main_SendValueReport ; (R16, R17, R18, R19, R20, R21, R23, R24, R25, X)
pop yh
pop yl
ret
; @end
#endif