From 282cd738b40d1c7853e2a4caf0bd4b7e4e9402a5 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Tue, 10 Mar 2026 00:15:52 +0100 Subject: [PATCH] gui2: started working on SensorWatch for GUI2. Works so far. --- avr/devices/c03/test/main.asm | 50 +-- avr/devices/c03/test/ressources.asm | 18 +- avr/devices/c03/test/ressources.inc | 4 + avr/modules/lcd2/gui2/aqhome/sensorwatch.asm | 316 +++++++++++++++++++ avr/modules/lcd2/gui2/base/hlayout.asm | 3 +- avr/modules/lcd2/gui2/base/label.asm | 11 +- avr/modules/lcd2/gui2/base/vlayout.asm | 3 +- avr/modules/lcd2/gui2/base/widget.asm | 9 +- 8 files changed, 369 insertions(+), 45 deletions(-) create mode 100644 avr/modules/lcd2/gui2/aqhome/sensorwatch.asm diff --git a/avr/devices/c03/test/main.asm b/avr/devices/c03/test/main.asm index f878a99..1bebfbf 100644 --- a/avr/devices/c03/test/main.asm +++ b/avr/devices/c03/test/main.asm @@ -266,49 +266,24 @@ test: bigcall MainWindow_new bigcall MainWindow_GetContentWidget brcc DEBUG_STOP - mov xl, yl + mov xl, yl ; X=MainWindow mov xh, yh - push xl + push xl ; mainWindow push xh - mov xl, r18 + mov xl, r18 ; contentWindow mov xh, r19 - push xl ; content window - push xh - ldi r16, (1< shift 2 times right lsr r17 andi r17, 3