From d64157f7ef5a3b15a141d56022fe436de3a0043b Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Wed, 21 Jan 2026 22:48:44 +0100 Subject: [PATCH] c03: implemented setdata message handling for SensorWatch storing/restoring data from EEPROM doesn't work, yet. --- avr/devices/c03/README | 10 +- avr/devices/c03/main/g_win_climate.asm | 133 +++++++++------ avr/devices/c03/main/main.asm | 17 ++ avr/modules/lcd2/gui2/sensorwatch.asm | 217 ++++++++++++++++++++----- devices/nodes/aqua_c03.xml | 14 +- 5 files changed, 294 insertions(+), 97 deletions(-) diff --git a/avr/devices/c03/README b/avr/devices/c03/README index 53dfeb9..e6b5828 100644 --- a/avr/devices/c03/README +++ b/avr/devices/c03/README @@ -1,5 +1,5 @@ -C01 +C03 === - Role: Controller with Display @@ -8,3 +8,11 @@ C01 - Periphery: - Display with SPI + + + +SetLimits: +aqhome-tool setdata -N nodes/xxxxxxxx/CO2_LIMIT_CRIT -v "LOWER:UPPER" +aqhome-tool setdata -N nodes/xxxxxxxx/CO2_LIMIT_WARN -v "LOWER:UPPER" + + diff --git a/avr/devices/c03/main/g_win_climate.asm b/avr/devices/c03/main/g_win_climate.asm index c469839..a6ecfc4 100644 --- a/avr/devices/c03/main/g_win_climate.asm +++ b/avr/devices/c03/main/g_win_climate.asm @@ -66,6 +66,9 @@ winClimateSensor3Value_ramdata: buttonClimateNetwork_ramdata: .byte IMGVIEW_SD_SIZE +debugValue1_ramdata: + .byte VLABEL_SD_SIZE + ; *************************************************************************** @@ -158,25 +161,25 @@ winClimate_signalmap: winClimateSensor1: ; OBJECT - .db 0x55, 0xaa ; magic - .dw winClimateSensor2*2 ; next - .dw winClimateBody*2 ; parent - .dw winClimateSensor1Title*2 ; first child - .dw 0 ; target - .dw 0 ; selector (ony lower 8 bits used) - .dw SensorWatch_DefaultSignalmap*2 ; signal map + .db 0x55, 0xaa ; magic + .dw winClimateSensor2*2 ; next + .dw winClimateBody*2 ; parent + .dw winClimateSensor1Title*2 ; first child + .dw 0 ; target + .dw 0 ; selector (ony lower 8 bits used) + .dw SensorWatch_DefaultSignalmap*2 ; signal map ; WIDGET - .db (1<3 - + + + + + + + + + + + + +