avr: added sensor watches for Temp and hunidity.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user