¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: nLight NIO-X module


 

I'm just finishing a project where I used this nLight module and encountered the same problem as you.? There is an error in the handling of the PUSH ChInc.? It has both a increase and then a decrease command.

I also changed the order of the commands and removed the initial command to bump the light level up a step.? Every time the button was pressed, the command fired twice.??

This is what I did in the module.? A similar thing can be done with the Chdec.

PUSH ChInc

{

INTEGER ch;

ch = GetLastModifiedArrayIndex();

// IncrementCh(ch,3);? //commented out because the ChincRepeat loop will always fire--resulting in doing this twice

ChIncRepeat[ch] = 1;

WHILE ( ChIncRepeat[ch] )

{

IncrementCh(ch,3); //I changed the order here and corrected the down command

ProcessLogic();

Delay(IncrementInterval);

}

?

}

Join [email protected] to automatically receive all group messages.