Microprocessor 2 Labs v2.0
Microprocessor 2 Lab Documenation
Loading...
Searching...
No Matches
main.c File Reference
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
Include dependency graph for main.c:

Macros

#define LOW   0 /* LOGIC LOW*/
 
#define HIGH   1 /* LOGIC HIGH*/
 

Functions

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)
 

Macro Definition Documentation

◆ HIGH

#define HIGH   1 /* LOGIC HIGH*/

◆ LOW

#define LOW   0 /* LOGIC LOW*/

Function Documentation

◆ app_main()

void app_main ( void )

◆ 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
leduint8_t * array which hold GPIOs pins
sizesize of the array
Returns
None

◆ light_show()

void light_show ( )

◆ setInputs()

void setInputs ( uint8_t * in,
int size )

setInputs will initialize uint8_t array as inputs

Parameters
leduint8_t * array which hold GPIOs pins
sizesize 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
outuint8_t * array which hold GPIOs pins
sizesize 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
leduint8_t * array which hold GPIOs pins
sizesize of the array
Returns
None