avr: added sensor watches for Temp and hunidity.

This commit is contained in:
Martin Preuss
2026-01-18 20:31:17 +01:00
parent ff5c49ad7a
commit 13f682b365
3 changed files with 312 additions and 4 deletions

View File

@@ -252,6 +252,27 @@ test:
ldi xl, LOW(2000)
ldi xh, HIGH(2000)
bigcall OBJ_HandleSignal
ldi zl, LOW(winSensorWatch2*2)
ldi zh, HIGH(winSensorWatch2*2)
; set source
ldi r16, SENSORWATCH_SIGNAL_SETSOURCE
clr r17
ldi xl, 9 ; node address
ldi xh, 1 ; value 0x01 (SI7021_TEMP)
bigcall OBJ_HandleSignal
ldi zl, LOW(winSensorWatch3*2)
ldi zh, HIGH(winSensorWatch3*2)
; set source
ldi r16, SENSORWATCH_SIGNAL_SETSOURCE
clr r17
ldi xl, 9 ; node address
ldi xh, 2 ; value 0x02 (SI7021_HUM)
bigcall OBJ_HandleSignal
ret