mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
Set up mclk
This commit is contained in:
parent
35b1b5fae6
commit
b1ad48c824
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,9 @@ namespace esphome {
|
||||||
namespace es8388 {
|
namespace es8388 {
|
||||||
|
|
||||||
void ES8388Component::setup() {
|
void ES8388Component::setup() {
|
||||||
|
PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO0_U, FUNC_GPIO0_CLK_OUT1);
|
||||||
|
WRITE_PERI_REG(PIN_CTRL, READ_PERI_REG(PIN_CTRL) & 0xFFFFFFF0);
|
||||||
|
|
||||||
// reset
|
// reset
|
||||||
this->write_bytes(0x00, {0x80});
|
this->write_bytes(0x00, {0x80});
|
||||||
this->write_bytes(0x00, {0x00});
|
this->write_bytes(0x00, {0x00});
|
||||||
|
|
Loading…
Reference in a new issue