effect

Show a light effect at the pin you want.

TwinkleA0showeffect on
function effect(value: number, name: number, tempo?: number);

You can choose to have a light effect, like blink or pulse, happen on the LED at a pin.

Parameters

  • value: the effect you want for the LED. You can choose:

    Twinkle, Heartbeat, Blink, or SOS

  • name: the pin with the LED you want to see the effect on, like A2.
  • tempo: the rate of how the effect changes in milliseconds. This is optional.

Example

If pin A0 is pressed, then show the SOS effect at pin A2,

100ifthenD0isHIGHSOSA2showeffect onpausemsforever

See also

set

100ifthenD0isHIGHSOSA2showeffect onpausemsforever