minor changes.

This commit is contained in:
Martin Preuss
2025-05-14 01:50:23 +02:00
parent 95a0e6ea9d
commit 30945807d8
4 changed files with 36 additions and 26 deletions

View File

@@ -86,13 +86,12 @@
.equ VALUE_ID_SI7021_HUM = 0x02 .equ VALUE_ID_SI7021_HUM = 0x02
.equ VALUE_ID_ADC = 0x03 .equ VALUE_ID_ADC = 0x03
;.equ VALUE_ID_REED1 = 0x04
;.equ VALUE_ID_REED2 = 0x05
;.equ VALUE_ID_DS18B20_TEMP = 0x06 ;.equ VALUE_ID_DS18B20_TEMP = 0x06
.equ VALUE_ID_MOTION = 0x07 .equ VALUE_ID_MOTION = 0x07
.equ VALUE_ID_TCRT1K = 0x08 .equ VALUE_ID_TCRT1K = 0x08
;.equ VALUE_ID_REED_CONF = 0x81 ;.equ VALUE_ID_REED_CONF = 0x81
.equ VALUE_ID_LEDSIMPLE_TIMING = 0x88

View File

@@ -84,6 +84,8 @@
.equ VALUE_ID_MAL_SOURCE1 = 0x86 .equ VALUE_ID_MAL_SOURCE1 = 0x86
.equ VALUE_ID_MAL_SOURCE2 = 0x87 .equ VALUE_ID_MAL_SOURCE2 = 0x87
.equ VALUE_ID_LEDSIMPLE_TIMING = 0x88
; *************************************************************************** ; ***************************************************************************
; code segment ; code segment
@@ -156,13 +158,22 @@ onMessageReceived:
; Called every 100ms. Add your routine calls here. No arguments, no results. ; Called every 100ms. Add your routine calls here. No arguments, no results.
onEvery100ms: onEvery100ms:
onEverySecond:
onEveryMinute: onEveryMinute:
onEveryHour: onEveryHour:
onEveryDay: onEveryDay:
ret ret
; @end ; @end
onEverySecond:
ret
; debug
ldi r19, 0x00 ; G
ldi r18, 0xff ; R
ldi r20, 0x55 ; B
ldi r21, 0xaa ; W
rcall SK6812_SetAllColor ; r23 (r16, r17)
ret
; --------------------------------------------------------------------------- ; ---------------------------------------------------------------------------

View File

@@ -123,7 +123,7 @@ main:
.include "modules/network/msg/defs.asm" .include "modules/network/msg/defs.asm"
.include "modules/network/msg/crc.asm" .include "modules/network/msg/crc.asm"
.include "common/debug.asm" ;.include "common/debug.asm"

View File

@@ -89,8 +89,6 @@
.equ VALUE_ID_SI7021_HUM = 0x02 .equ VALUE_ID_SI7021_HUM = 0x02
.equ VALUE_ID_ADC = 0x03 .equ VALUE_ID_ADC = 0x03
;.equ VALUE_ID_REED1 = 0x04
;.equ VALUE_ID_REED2 = 0x05
;.equ VALUE_ID_DS18B20_TEMP = 0x06 ;.equ VALUE_ID_DS18B20_TEMP = 0x06
.equ VALUE_ID_MOTION = 0x07 .equ VALUE_ID_MOTION = 0x07
@@ -101,6 +99,8 @@
.equ VALUE_ID_DEBUG = 0x7f .equ VALUE_ID_DEBUG = 0x7f
.equ VALUE_ID_LEDSIMPLE_TIMING = 0x88