forked from xiaozhi/xiaozhi-esp32
Add support for Waveshare ESP32-S3-ePaper-1.54 board (#1375)
* Add support for Waveshare ESP32-S3-ePaper-1.54 board * 根据审核,做对应的修改 * fix:优化格式,主要是对头文件引用进行修改 --------- Co-authored-by: Tomato Me <55608753+wurongmin@users.noreply.github.com>
This commit is contained in:
23
main/boards/waveshare-s3-epaper-1.54/board_power_bsp.h
Normal file
23
main/boards/waveshare-s3-epaper-1.54/board_power_bsp.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef __BOARD_POWER_BSP_H__
|
||||
#define __BOARD_POWER_BSP_H__
|
||||
|
||||
class BoardPowerBsp {
|
||||
private:
|
||||
const int epdPowerPin_;
|
||||
const int audioPowerPin_;
|
||||
const int vbatPowerPin_;
|
||||
|
||||
static void PowerLedTask(void *arg);
|
||||
|
||||
public:
|
||||
BoardPowerBsp(int epdPowerPin, int audioPowerPin, int vbatPowerPin);
|
||||
~BoardPowerBsp();
|
||||
void PowerEpdOn();
|
||||
void PowerEpdOff();
|
||||
void PowerAudioOn();
|
||||
void PowerAudioOff();
|
||||
void VbatPowerOn();
|
||||
void VbatPowerOff();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user