effect
Show a light effect at the pin you want.
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
, orSOS
- 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
,