nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
led.h File Reference
#include <stdint.h>

Go to the source code of this file.

Macros

#define LED_APP_RGB   0
 
#define LED_NET_RGB   1
 
#define LED_APP_1_BLUE   2
 
#define LED_APP_2_GREEN   3
 
#define LED_APP_3_GREEN   4
 
#define RED   0
 
#define GREEN   1
 
#define BLUE   2
 
#define GRN   GREEN
 
#define BLU   BLUE
 
#define LED_ON   LED_COLOR_WHITE
 
#define LED_BLINK   true
 
#define LED_SOLID   false
 

Enumerations

enum  led_color {
  LED_COLOR_OFF , LED_COLOR_RED , LED_COLOR_GREEN , LED_COLOR_YELLOW ,
  LED_COLOR_BLUE , LED_COLOR_MAGENTA , LED_COLOR_CYAN , LED_COLOR_WHITE ,
  LED_COLOR_NUM
}
 

Functions

int led_blink (uint8_t led_unit,...)
 Set the state of a given LED unit to blink.
 
int led_on (uint8_t led_unit,...)
 Turn the given LED unit on.
 
int led_off (uint8_t led_unit)
 Set the state of a given LED unit to off.
 
int led_init (void)
 Initialise the LED module.