Files
aqhomecontrol/avr/modules/brightness/send.asm
2025-06-23 19:21:49 +02:00

32 lines
873 B
NASM

; ***************************************************************************
; copyright : (C) 2025 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. *
; ***************************************************************************
.cseg
; ---------------------------------------------------------------------------
; @routine Brightness_Send
Brightness_Send:
rcall Brightness_GetValue
brcc Brightness_Send_end
mov r18, r16
clr r19
ldi r20, 1
clr r21
ldi r17, VALUE_ID_BRIGHTNESS ; VALUE ID
ldi r22, AQHOME_VALUETYPE_LIGHT ; VALUE TYPE
rcall Main_SendValueReport
Brightness_Send_end:
ret
; @end