avr: added initial module to handle reed contacts.

Detects and reports opening and closing of a window/door.
Nexts step is to allow for external configuration (e.g. standard mode
with one reed contact versus multi-contact mode to detect tilting of a
window/door).
This commit is contained in:
Martin Preuss
2023-05-12 21:41:39 +02:00
parent c6e013fdcf
commit 84403d07f6
6 changed files with 424 additions and 4 deletions

View File

@@ -140,6 +140,10 @@ initModules:
rcall CNY70_Init
#endif
#ifdef MODULES_REED
rcall REED_Init
#endif
; done
ret
@@ -181,6 +185,10 @@ runModulesUntilIdle_ComEnd:
rcall Stats_Run
#endif
#ifdef MODULES_REED
rcall REED_Run
#endif
; add more modules here
ret