; *************************************************************************** ; 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. * ; *************************************************************************** #if 0 ; disabled for now ; *************************************************************************** ; type 1 .macro SK6812_SENDBIT1 lsl r16 ; +1 brcs l_sendOne ; +1 if false, +2 if branch taken ; send ZERO nop ; +1 out SK6812_PORT, r25 ; +1 HIGH nop ; +1 nop ; +1 nop out SK6812_PORT, r24 ; +1 nop ; +1 rjmp l_end ; +2 l_sendOne: out SK6812_PORT, r25 ; +1 HIGH nop ; +1 nop ; +1 nop ; +1 nop ; +1 nop ; +1 out SK6812_PORT, r24 ; +1 nop ; +1 l_end: .endmacro ; --------------------------------------------------------------------------- ; @routine sk6812SendByte1 ; ; Sends a byte to the LED strip ; @param r16 byte ; @clobbers r16, r24, r25 sk6812SendByte1: ldi r24, 0 ldi r25, (1<