#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
 | 
| #define  | LOW   0  /* LOGIC LOW*/ | 
|   | 
| #define  | HIGH   1  /* LOGIC HIGH*/ | 
|   | 
 | 
| void  | setOutputs (uint8_t *out, int size) | 
|   | setOutputs will initialize uint8_t array as outputs  
  | 
|   | 
| void  | sweep (uint8_t *led, int size) | 
|   | sweep function will sweep among the GPIOs  
  | 
|   | 
| void  | led_chaser (uint8_t *led, int size) | 
|   | led_chaser led chaser will make a single led to iterate over the array  
  | 
|   | 
| void  | lightShow (uint8_t *led, int size) | 
|   | lightShow user define light show  
  | 
|   | 
| void  | app_main (void) | 
|   | 
◆ HIGH
      
        
          | #define HIGH   1  /* LOGIC HIGH*/ | 
        
      
 
 
◆ LOW
      
        
          | #define LOW   0  /* LOGIC LOW*/ | 
        
      
 
 
◆ app_main()
◆ led_chaser()
      
        
          | void led_chaser  | 
          ( | 
          uint8_t * |           led,  | 
        
        
           | 
           | 
          int |           size ) | 
        
      
 
led_chaser led chaser will make a single led to iterate over the array 
- Parameters
 - 
  
    | led | uint8_t * array which hold GPIOs pins  | 
    | size | size of the array  | 
  
   
- Returns
 - None 
 
 
 
◆ lightShow()
      
        
          | void lightShow  | 
          ( | 
          uint8_t * |           led,  | 
        
        
           | 
           | 
          int |           size ) | 
        
      
 
lightShow user define light show 
- Parameters
 - 
  
    | led | uint8_t * array which hold GPIOs pins  | 
    | size | size of the array  | 
  
   
- Returns
 - None 
 
 
 
◆ setOutputs()
      
        
          | void setOutputs  | 
          ( | 
          uint8_t * |           out,  | 
        
        
           | 
           | 
          int |           size ) | 
        
      
 
setOutputs will initialize uint8_t array as outputs 
- Parameters
 - 
  
    | out | uint8_t * array which hold GPIOs pins  | 
    | size | size of the array  | 
  
   
- Returns
 - None 
 
- Note
 - initialize gpio before using them 
 
 
 
◆ sweep()
      
        
          | void sweep  | 
          ( | 
          uint8_t * |           led,  | 
        
        
           | 
           | 
          int |           size ) | 
        
      
 
sweep function will sweep among the GPIOs 
- Parameters
 - 
  
    | led | uint8_t * array which hold GPIOs pins  | 
    | size | size of the array  | 
  
   
- Returns
 - None