Hardware Application Layer for any LEDs.
More...
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
Go to the source code of this file.
|
| struct | Led |
| | This is a custom library for easy use of Led without the struggle of doing all the hardware intializatio and selection. More...
|
| |
Hardware Application Layer for any LEDs.
- Author
- Jesus Minjares (https://github.com/jminjares4)
- Version
- 0.1
- Date
- 2021-11-27
- Copyright
- Copyright (c) 2021
◆ HIGH
◆ LOW
◆ ONBOARD_LED
◆ state_t
◆ state_t
led.h
Led struct for any outputs
Enumeration of the led state
Example
typedef enum {
state_t
led.h
Definition: led.h:44
@ LED_ON
Definition: led.h:46
@ LED_OFF
Definition: led.h:45
| Enumerator |
|---|
| LED_OFF | led off
|
| LED_ON | led on
|
◆ ledAllOff()
| void ledAllOff |
( |
Led * |
led, |
|
|
int |
size |
|
) |
| |
◆ ledInit()
| void ledInit |
( |
Led * |
led | ) |
|
Led initialization for any led.
- Parameters
-
| led | pass a Led by reference |
- Returns
- None
- Parameters
-
| led | pass a Led by reference |
- Returns
- None
◆ ledOff()
ledOff will set low the instance of the led
- Parameters
-
| led | pass a Led by reference |
- Note
- None
-
ledOn will change the state of the led
- See also
- state
- Parameters
-
| led | pass a Led by reference |
- Note
- None
-
ledOn will change the state of the led
- See also
- state
◆ ledOn()
ledOn will set high the instance of the led
- Parameters
-
| led | pass a Led by reference |
- Returns
- None
- Note
- ledOn will change the state of the led
- See also
- state
- Parameters
-
| led | pass a Led by reference |
- Returns
- None
- Note
- ledOn will change the state of the led
- See also
- state