forked from xiaozhi/xiaozhi-esp32
rename files
This commit is contained in:
24
main/boards/bread-compact-ml307/compact_ml307_board.cc
Normal file
24
main/boards/bread-compact-ml307/compact_ml307_board.cc
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "ml307_board.h"
|
||||
#include "system_reset.h"
|
||||
#include "audio_device.h"
|
||||
|
||||
#include <esp_log.h>
|
||||
|
||||
#define TAG "CompactMl307Board"
|
||||
|
||||
class CompactMl307Board : public Ml307Board {
|
||||
public:
|
||||
virtual void Initialize() override {
|
||||
ESP_LOGI(TAG, "Initializing CompactMl307Board");
|
||||
// Check if the reset button is pressed
|
||||
SystemReset::GetInstance().CheckButtons();
|
||||
|
||||
Ml307Board::Initialize();
|
||||
}
|
||||
|
||||
virtual AudioDevice* CreateAudioDevice() override {
|
||||
return new AudioDevice();
|
||||
}
|
||||
};
|
||||
|
||||
DECLARE_BOARD(CompactMl307Board);
|
||||
Reference in New Issue
Block a user