modified: main/src/leds.c modified: main/src/main.c modified: main/src/sensor.c
20 lines
316 B
C
20 lines
316 B
C
#pragma once
|
|
#include <driver/gpio.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define LED_INT GPIO_NUM_2
|
|
#define LED1 GPIO_NUM_4
|
|
#define LED2 GPIO_NUM_5
|
|
|
|
void led_blink_task(void *pvParameter);
|
|
unsigned initLEDs();
|
|
void led_on(gpio_num_t ledNumber);
|
|
void led_off(gpio_num_t ledNumber);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|