Commit Graph

675 Commits

Author SHA1 Message Date
Martin Preuss
88a66f6822 avr: add complex fan controller app with base classes to be used by other apps as well.
- add modules
  - holdtimer (keep actor running while triggered)
  - triggeraction (connect actor with holdtimer)
- add app fan_controller
  - uses the modules mentioned above to turn on/off fans in connection
    with e.g. motion sensor nodes
2026-08-06 00:05:50 +02:00
Martin Preuss
d8498dceaf avr: add TextSel widget to CWidget. 2026-07-13 23:26:54 +02:00
Martin Preuss
3286d8e1d7 avr: fixed apidoc. 2026-07-13 23:25:12 +02:00
Martin Preuss
f5c530507e avr: more work on list widget. 2026-07-13 23:24:54 +02:00
Martin Preuss
56831ac53d more work on dialog class. 2026-07-13 23:24:32 +02:00
Martin Preuss
0675538258 lcd2: more work on light settings. 2026-07-13 23:23:49 +02:00
Martin Preuss
657853c1fe avr: minor reformatting. 2026-07-05 23:17:23 +02:00
Martin Preuss
276127e139 avr: removed NET_IFACE_OFFS_LASTPORTVALUE 2026-07-05 23:17:04 +02:00
Martin Preuss
a5559770ef avr: more work on MultiFAN module (now works, tested with a single fan). 2026-07-05 23:15:06 +02:00
Martin Preuss
9842d8a2e5 avr: more work on multifan module. 2026-07-05 20:27:28 +02:00
Martin Preuss
db3f88f3af avr: added com2w2 (slightly improved version of com2w).
- move IRQ control to main code (only the main code knows exactly which
  combination of pins is used for com2)
- split one big module into multiple smaller files (easier to maintain)
2026-07-05 20:06:00 +02:00
Martin Preuss
b863e29612 com2w: removed unneeded code. 2026-07-05 20:03:29 +02:00
Martin Preuss
7a32f6deb7 avr/network: added field for last port value (should later be moved to com2w specific data). 2026-06-29 22:16:38 +02:00
Martin Preuss
cf2a0daae2 com2w: added routine COM2W_CheckPort
to be used by common pin change interrupt handler in n32
2026-06-29 22:15:58 +02:00
Martin Preuss
cbc3eab164 multiFan: handle SETVALUE messages. 2026-06-29 22:15:15 +02:00
Martin Preuss
3ae542f61b com2w: use inr/outr macros for COM_IRQ_ADDR_CLK
the corresponding register is not inside the lower address space on some
devices (like ATtiny 861).
2026-06-29 17:45:42 +02:00
Martin Preuss
2974303007 avr: started working on MultiFAN module.
PWM basically works.
2026-06-29 17:44:22 +02:00
Martin Preuss
a65e6fbec2 textsel: use index instead of ressource id as value for the widget. 2026-05-23 11:06:39 +02:00
Martin Preuss
710162e242 gui: sorted files. started working on TextSel class. 2026-05-23 01:43:04 +02:00
Martin Preuss
4b13f16e05 gui: improved Label class (can now have a suffix to reduce FLASH usage).
- e.g. light1 and light2 can now share the string but have different suffix
- allow for initially empty text
2026-05-23 01:41:58 +02:00
Martin Preuss
0c42acf76d gui: added image label (image plus text). 2026-05-18 17:14:50 +02:00
Martin Preuss
311741ae64 gui: added Widget_GetRessource 2026-05-18 17:14:17 +02:00
Martin Preuss
4ad55e2c6e gui: minor reformatting. 2026-05-18 17:13:31 +02:00
Martin Preuss
b2e5be974e gui: added LONG mode for buttons (handles short and long presses). 2026-05-18 17:12:39 +02:00
Martin Preuss
0c4a2aace9 gui: use CDialog_GetChildValue 2026-05-14 13:44:25 +02:00
Martin Preuss
73b7699054 avr: add CDialog_GetChildValue/CDialog_SetChildValue (more code sharing). 2026-05-14 13:44:10 +02:00
Martin Preuss
76def6c8dc gui: set WIDGET_FLAGS_VISIBLE_BIT early in Dialog_OnShow 2026-05-13 20:07:45 +02:00
Martin Preuss
3d14c54df3 gui: adjusted climate window and SensorWatch to latest changes. 2026-05-13 00:30:58 +02:00
Martin Preuss
313b2c05a1 gui: implemented DlgLightConns_OnCmdLight and DlgLightConns_OnDlgEndLight. 2026-05-11 12:11:33 +02:00
Martin Preuss
d54a259060 gui: adapted ScreenSaver to latest changes. 2026-05-11 11:55:56 +02:00
Martin Preuss
d07f411e51 gui: implement DlgLightConns_OnCmdMotion2 and DlgLightConns_OnDlgEndMotion2 2026-05-11 11:55:16 +02:00
Martin Preuss
b4ac70dbd1 gui: removed unneeded code, use CDialog_DefaultSignalmap as fallback signal map 2026-05-11 11:54:23 +02:00
Martin Preuss
d34062df39 gui: make CDialog a full object with signal map, implement "OnMkContent". 2026-05-11 11:53:37 +02:00
Martin Preuss
b927bfdab6 gui: added dialog signals DIALOG_SIGNAL_MKCONTENT and DIALOG_SIGNAL_RMCONTENT. 2026-05-11 11:52:23 +02:00
Martin Preuss
39b3d4d174 gui: adapt to latest changes.
need to work on other MainWindow derivates next.
2026-05-11 00:42:42 +02:00
Martin Preuss
0ec290e29c gui: allow setting OPTS from r16.
this is used by the caller to specify whether standard dialog buttons are
to be added.
2026-05-11 00:42:05 +02:00
Martin Preuss
fc28a57b05 gui: define signals for dialog class, create to-be-shared code. 2026-05-11 00:41:16 +02:00
Martin Preuss
cd0d74d491 MainWindow: no longer auto-create content widget
will be called later by deriving classes upon SHOW signal to save on
SDRAM.
2026-05-11 00:40:28 +02:00
Martin Preuss
800b6d316e widget: save Z 2026-05-11 00:39:19 +02:00
Martin Preuss
85a837d9ef avr: re-enable heapCoalecseUp 2026-05-10 17:03:13 +02:00
Martin Preuss
6787b4f527 avr: use Heap_AllocAndZero 2026-05-10 17:02:53 +02:00
Martin Preuss
455b81d8eb avr: minor formatting. 2026-05-10 17:02:41 +02:00
Martin Preuss
41c947a486 DEBUG: temporarily disable heapCoalecseUp. 2026-05-09 02:03:31 +02:00
Martin Preuss
2dec641f04 gui: added comment. 2026-05-09 02:02:08 +02:00
Martin Preuss
184195ba9f gui: fixed apidoc. 2026-05-09 02:01:55 +02:00
Martin Preuss
bb753b6009 gui: comment-out code 2026-05-09 02:01:39 +02:00
Martin Preuss
d55c9b0cb7 gui: fixed some problems. 2026-05-09 02:01:11 +02:00
Martin Preuss
dad807e7ad gui: add routine to destroy objects outside event loop. 2026-05-09 02:00:41 +02:00
Martin Preuss
c165432c1c gui: fixed a bug (missing ret). 2026-05-09 02:00:06 +02:00
Martin Preuss
21b6a992ff gui: fixed ValueLabel to also use WIDGET_VALUE_CURRENTVALUE 2026-05-09 01:59:47 +02:00