; *************************************************************************** ; copyright : (C) 2026 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. * ; *************************************************************************** #ifndef AQH_AVR_DEVICE_C03_WIN_CLIMATE_ASM #define AQH_AVR_DEVICE_C03_WIN_CLIMATE_ASM ; *************************************************************************** ; data .dseg winClimate_ramdata: .byte WIDGET_SD_SIZE winClimateHeader_ramdata: .byte WIDGET_SD_SIZE winClimateBody_ramdata: .byte WIDGET_SD_SIZE winClimateSensor1_ramdata: .byte SENSORWATCH_SD_SIZE winClimateSensor1Title_ramdata: .byte WIDGET_SD_SIZE winClimateSensor1Image_ramdata: .byte IMGVIEW_SD_SIZE winClimateSensor1Value_ramdata: .byte VLABEL_SD_SIZE winClimateSensor2_ramdata: .byte SENSORWATCH_SD_SIZE winClimateSensor2Title_ramdata: .byte WIDGET_SD_SIZE winClimateSensor2Image_ramdata: .byte IMGVIEW_SD_SIZE winClimateSensor2Value_ramdata: .byte VLABEL_SD_SIZE winClimateSensor3_ramdata: .byte SENSORWATCH_SD_SIZE winClimateSensor3Title_ramdata: .byte WIDGET_SD_SIZE winClimateSensor3Image_ramdata: .byte IMGVIEW_SD_SIZE winClimateSensor3Value_ramdata: .byte VLABEL_SD_SIZE buttonClimateNetwork_ramdata: .byte IMGVIEW_SD_SIZE buttonEepromDump_ramdata: .byte IMGVIEW_SD_SIZE debugValue1_ramdata: .byte VLABEL_SD_SIZE ; *************************************************************************** ; code .cseg winClimate: ; OBJECT .db 0x55, 0xaa ; magic .dw winNetwork*2 ; next .dw winRoot*2 ; parent .dw winClimateHeader*2 ; first child .dw 0 ; target .dw 0 ; selector (ony lower 8 bits used) .dw winClimate_signalmap*2 ; signal map ; WIDGET .db 0, 0 ; opts lo, hi .dw 0 ; X .dw 0 ; Y .dw DISPLAY_WIDTH ; W .dw DISPLAY_HEIGHT ; H .dw STYLE_WIN_FOREGROUND ; front color .dw STYLE_WIN_BACKGROUND ; back color .dw STYLE_WIN_FONT*2 ; font .dw winClimate_ramdata ; ptr to SDRAM winClimate_signalmap: .db 0, OBJECT_SIGNAL_CREATE, LOW(Widget_OnCreate), HIGH(Widget_OnCreate) .db 0, WIDGET_SIGNAL_DRAW, LOW(Widget_OnDraw), HIGH(Widget_OnDraw) .db 0, 0, 0, 0 ; end of table winClimateHeader: ; OBJECT .db 0x55, 0xaa ; magic .dw winClimateBody*2 ; next .dw winClimate*2 ; parent .dw 0 ; first child .dw 0 ; target .dw 0 ; selector (ony lower 8 bits used) .dw Label_DefaultSignalmap*2 ; signal map ; WIDGET .db 0, 0 ; opts lo, hi .dw 0 ; X .dw 0 ; Y .dw DISPLAY_WIDTH ; W .dw STYLE_WIN_TITLE_HEIGHT ; H .dw STYLE_WIN_TITLE_FOREGROUND ; front color .dw STYLE_WIN_TITLE_BACKGROUND ; back color .dw STYLE_WIN_FONT*2 ; font .dw winClimateHeader_ramdata ; ptr to SDRAM ; LABEL .dw winClimateHeader_text*2 ; text winClimateHeader_text: .db "Raumklima", 0 winClimateBody: ; OBJECT .db 0x55, 0xaa ; magic .dw 0 ; next .dw winClimate*2 ; parent .dw winClimateSensor1*2 ; first child .dw 0 ; target .dw 0 ; selector (ony lower 8 bits used) .dw winClimateBody_signalmap*2 ; signal map ; WIDGET .db 0, 0 ; opts lo, hi .dw 0 ; X .dw STYLE_WIN_TITLE_HEIGHT ; Y .dw DISPLAY_WIDTH ; W .dw DISPLAY_HEIGHT-STYLE_WIN_TITLE_HEIGHT ; H .dw STYLE_WIN_FOREGROUND ; front color ; .dw DISPLAY_COLOR_YELLOW .dw STYLE_WIN_BACKGROUND ; back color .dw STYLE_WIN_FONT*2 ; font .dw winClimateBody_ramdata ; ptr to SDRAM winClimateBody_signalmap: .db 0, OBJECT_SIGNAL_CREATE, LOW(Widget_OnCreate), HIGH(Widget_OnCreate) .db 0, WIDGET_SIGNAL_DRAW, LOW(Widget_OnDraw), HIGH(Widget_OnDraw) .db 0, 0, 0, 0 ; end of table 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 ; WIDGET .db (1<