Down() - The Decrement Area Function

This function will decrement an area by .3%. It is the opposite of the Up() command.
There is no channel number or fade time so it always effects the entire area and at a fixed decrement of .3%.

Syntax

Down(A=x,J=x)

Parameters
  • "A" is the area number (0-255) - Default of 1

  • "J" is the join level (0x00-0xFF) - Default is 0xFF

Any parameter that is omitted will be replaced with the default value.
You can only use fixed values, decimal or hex, in functions. You may not reference tilde memory, persistent memory locations, or ports. However, you can use constants as they are just place holders for fixed values.

You can use the commands Area= Command, and Join= Command to modify the default value for parameters in this function when you do not specify them.

Example

Simple standard use of the Down() function. Join is omitted so the default value is used.

{
    Name="Steppy ramp down button"   //Press starts task, release stops task.
    Loop:
        Down(A=44)  //Bump the level of the area down slightly.
        Delay(.5)   //Wait half a second
        BRA Loop    //Go do it again...
}