avr: adapted ds18b20 module to latest changes.
This commit is contained in:
26
avr/modules/ds18b20/send.asm
Normal file
26
avr/modules/ds18b20/send.asm
Normal file
@@ -0,0 +1,26 @@
|
||||
; ***************************************************************************
|
||||
; 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 Ds18b20_SendTemperature
|
||||
|
||||
Ds18b20_SendTemperature:
|
||||
rcall Ds18b20_GetValue
|
||||
brcc Ds18b20_SendTemperature_end
|
||||
ldi r17, VALUE_ID_DS18B20_TEMP ; value id
|
||||
ldi r22, AQHOME_VALUETYPE_TEMP
|
||||
rcall Main_SendValueReport
|
||||
Ds18b20_SendTemperature_end:
|
||||
ret
|
||||
; @end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user