Up() - The Increment Area Function

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

Syntax

Up(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 Up() function. Join is omitted so the default value is used.

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