This allows for better control over the LED strip. We can now trigger the LED strip externally (e.g. by setting a new RGBW value).
51 lines
1.1 KiB
NASM
51 lines
1.1 KiB
NASM
; ***************************************************************************
|
|
; 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_DEVICES_ALL_APPS_100MS_ASM
|
|
#define AQH_AVR_DEVICES_ALL_APPS_100MS_ASM
|
|
|
|
|
|
|
|
; ***************************************************************************
|
|
; code
|
|
|
|
.cseg
|
|
|
|
|
|
|
|
; ---------------------------------------------------------------------------
|
|
; @routine appsOnEvery100ms
|
|
;
|
|
; Called every 100ms. No arguments, no results.
|
|
|
|
appsOnEvery100ms:
|
|
|
|
#ifdef APPS_NETWORK
|
|
ldi yl, LOW(netInterfaceData)
|
|
ldi yh, HIGH(netInterfaceData)
|
|
bigcall AppNetwork_Every100ms
|
|
#endif
|
|
|
|
#ifdef APPS_MOTION
|
|
bigcall AppMotion_Every100ms
|
|
#endif
|
|
|
|
#ifdef APPS_DOOR
|
|
bigcall AppDoor_Every100ms
|
|
#endif
|
|
|
|
ret
|
|
; @end
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|