gui2: started working on a SDRAM based GUI implementation.

This commit is contained in:
Martin Preuss
2026-03-03 23:51:52 +01:00
parent 639136431b
commit 0d6bbd1147
3 changed files with 1305 additions and 0 deletions

View File

@@ -1,4 +1,39 @@
object:
- next 2 2
- parent 2 4
- child 2 6
- opts 2 8
- flags 1 9
- selector 1 10
- target 2 12
- signalMap 2 14
widget:
- X 1 15
- Y 1 16
- W 1 17
- H 1 18
- style 2 (ptr) 20
- frontCol 2 2
- backCol 2 4
- borderCol 2 6
- borderWidth 1 7
- font 2 9
- charWidth 1 10
- charHeight 1 11
page: light
- up to 8 light bulbs, each for one device
- lightPage:
- SDRAM: ptr to lightData
- address of target device (1 byte)
- currentMode (1 byte)
- currentColor (4 bytes)
- sensor watch:
- SDRAM vars:
- change limits
@@ -7,6 +42,42 @@
- SENSORWATCH_SD_OFFS_UPPERLIMIT_CRIT_LO
- SENSORWATCH_SD_OFFS_LOWERLIMIT_CRIT_LO
- add private flags (HAVE_VALUE, USE_UPPERWARNLIMIT, USE_LOWERWARNLIMIT, USE_UPPERCRITLIMIT, USE_LOWERCRITLIMIT)
- widgets:
Mode: [Auto] [On] [Off]
Color: [Preset1] [Preset2] [Preset3]
Red: [123]
Green: [123]
Blue: [123]
White: [123]
page: numInput (g_win_numinput)
- SDRAM:
- prevPage
- flags
- minNum
- maxNum
- currPos
- editBuffer[7]
- widgets:
textField:
- SDRAM:
- ptrText
- slots:
- setText(newText)
- draw(): draw text and a cursor behind it
[123 ]
------------
[7] [8] [9]
[4] [5] [6]
[1] [2] [3]
[,] [0] [<]
------------
[Okay] [Abort]
- new pages: