Go to the source code of this file.
 | 
| p9813_context  | p9813_init (int ledcount, int clk, int data) | 
|   | 
| void  | p9813_close (p9813_context dev) | 
|   | 
| upm_result_t  | p9813_set_led (p9813_context dev, uint16_t index, uint8_t r, uint8_t g, uint8_t b) | 
|   | 
| upm_result_t  | p9813_set_leds (p9813_context dev, uint16_t s_index, uint16_t e_index, uint8_t r, uint8_t g, uint8_t b) | 
|   | 
| upm_result_t  | p9813_refresh (p9813_context dev) | 
|   | 
Instantiates a new P9813 Chainable RGB LEDs
- Parameters
 - 
  
    | ledcount | Number of LEDs in the chain  | 
    | clk | Clock pin  | 
    | data | Data pin  | 
  
   
- Returns
 - an initialized p9813 context on success, NULL on error. 
 
 
 
P9813 close function
- Parameters
 - 
  
    | dev | The p9813_context to close  | 
  
   
 
 
      
        
          | upm_result_t p9813_set_led  | 
          ( | 
          p9813_context  | 
          dev,  | 
        
        
           | 
           | 
          uint16_t  | 
          index,  | 
        
        
           | 
           | 
          uint8_t  | 
          r,  | 
        
        
           | 
           | 
          uint8_t  | 
          g,  | 
        
        
           | 
           | 
          uint8_t  | 
          b  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Sets the color for one LED in the buffer
- Parameters
 - 
  
    | dev | The p9813_context to use  | 
    | index | Index of the LED (0 based)  | 
    | r | Red component (0-255)  | 
    | g | Green component (0-255)  | 
    | b | Blue component (0-255)  | 
  
   
- Returns
 - upm_result_t UPM success/error code 
 
 
 
      
        
          | upm_result_t p9813_set_leds  | 
          ( | 
          p9813_context  | 
          dev,  | 
        
        
           | 
           | 
          uint16_t  | 
          s_index,  | 
        
        
           | 
           | 
          uint16_t  | 
          e_index,  | 
        
        
           | 
           | 
          uint8_t  | 
          r,  | 
        
        
           | 
           | 
          uint8_t  | 
          g,  | 
        
        
           | 
           | 
          uint8_t  | 
          b  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Sets the color for multiple LEDs in the buffer
- Parameters
 - 
  
    | dev | The p9813_context to use  | 
    | s_index | The start Index of the LED range (0 based)  | 
    | e_index | The end Index of the LED range (0 based)  | 
    | r | Red component (0-255)  | 
    | g | Green component (0-255)  | 
    | b | Blue component (0-255)  | 
  
   
- Returns
 - upm_result_t UPM success/error code 
 
 
 
Writes the buffer to the LED controllers thus updating the LEDs
- Parameters
 - 
  
    | dev | The p9813_context to use  | 
  
   
- Returns
 - upm_result_t UPM success/error code