Fix capitalize folder and file name ignored

This commit is contained in:
Phat Nguyen
2024-02-17 17:28:51 +07:00
parent 781fb51c6f
commit 6cdbb8a0a3
24 changed files with 1469 additions and 0 deletions

45
src/Main/StatusLed.h Normal file
View File

@ -0,0 +1,45 @@
#ifndef _STATUS_LED_H_
#define _STATUS_LED_H_
#include "BoardDef.h"
#include <Arduino.h>
/**
* @brief The class define how to handle the LED
*
*/
class StatusLed {
public:
enum State {
LED_OFF,
LED_ON,
};
StatusLed(BoardType boardType);
#if defined(ESP8266)
void begin(Stream &debugStream);
#else
#endif
void begin(void);
void end(void);
void setOn(void);
void setOff(void);
void setToggle(void);
State getState(void);
String toString(StatusLed::State state);
private:
const BoardDef *bsp = nullptr;
BoardType boardType;
bool _isBegin = false;
State state;
#if defined(ESP8266)
Stream *_debugStream;
const char *TAG = "StatusLed";
#else
#endif
bool isBegin(void);
};
#endif /** _STATUS_LED_H_ */