forked from airgradienthq/arduino
Fix capitalize folder and file name ignored
This commit is contained in:
1 parent
781fb51c6f
commit
6cdbb8a0a3
24 files changed
+1469
No files matched your search
@@ -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_ */
|
||||
Reference in new issue
Block a user