esp32-car/include/led.h

17 lines
278 B
C
Raw Normal View History

2024-12-27 09:57:09 +08:00
#ifndef __LED_H__
#define __LED_H__
#include <Arduino.h>
2024-12-27 15:56:14 +08:00
#include "consts.h"
2024-12-27 09:57:09 +08:00
class LED
{
public:
static int ledPin;
2024-12-27 15:56:14 +08:00
static unsigned long lastLedToggle;
static bool ledState;
2024-12-27 09:57:09 +08:00
static void init(int pin);
static void updateStatusLED(bool status);
};
#endif // __LED_H__