libpynq (release 5EWC0-2023 version 0.2.6 of 2023-10-24 17:28)
Loading...
Searching...
No Matches
leds.h File Reference
#include <gpio.h>
#include <pinmap.h>
Include dependency graph for leds.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NUM_LED_COLORS   3 /* # colors per color LED (RGB) */
 
#define NUM_LEDS   (NUM_GREEN_LEDS + NUM_COLOR_LEDS)
 
#define LED_OFF   0
 
#define LED_ON   255
 

Enumerations

enum  green_led_index_t {
  LED0 , LED1 , LED2 , LED3 ,
  NUM_GREEN_LEDS
}
 
enum  color_led_index_t { COLOR_LED0 , COLOR_LED1 , NUM_COLOR_LEDS }
 

Functions

void leds_init_onoff (void)
 
void green_leds_init_pwm (void)
 
void color_leds_init_pwm (void)
 
void leds_destroy (void)
 
void green_led_onoff (const int led, const int onoff)
 
void green_led_on (const int led)
 
void green_led_off (const int led)
 
void color_led_red_onoff (const int onoff)
 
void color_led_green_onoff (const int onoff)
 
void color_led_blue_onoff (const int onoff)
 
void color_led_onoff (const int red_onoff, const int green_onoff, const int blue_onoff)
 
void color_led_on (void)
 
void color_led_off (void)