#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 | setInputs (uint8_t *in, int size) |
| | setInputs will initialize uint8_t array as inputs
|
| |
| 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 | light_show () |
| |
| void | led_chaser (uint8_t *led, int size) |
| | led_chaser led chaser will make a single led to iterate over the array
|
| |
| 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
◆ light_show()
◆ setInputs()
| void setInputs |
( |
uint8_t * | in, |
|
|
int | size ) |
setInputs will initialize uint8_t array as inputs
- Parameters
-
| led | uint8_t * array which hold GPIOs pins |
| size | size of the array |
- Returns
- None
- Note
- initialize gpio before using them
◆ 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