PreviousNext
setLEDR
Help > OS functions > LED indication > setLEDR

Function

 

Red LED on

Purpose

 

Sets the red LED permanently on

Syntax

 

void setLEDR()

Parameters

 

  –

Return value

 

  –

Output values

 

  –

Preconditions

 

  –

Remarks

 

     Use this instead of direct handling the appropriate MCU pin  (LEDR = 1).

     Possible previous LED activity (e.g. pulsing in OS background) is terminated.

Side effects

 

  –

See also

 

stopLEDR, pulseLEDR, pulsingLEDR

Example

 

setLEDR();          // Red LED on

   ...              // Shining continues

stopLEDR();         // Until stopped