1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-01 15:41:52 +00:00

Set up mclk

This commit is contained in:
Jesse Hills
2022-06-16 20:27:47 +12:00
parent 35b1b5fae6
commit b1ad48c824

View File

@@ -4,6 +4,9 @@ namespace esphome {
namespace es8388 {
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
this->write_bytes(0x00, {0x80});
this->write_bytes(0x00, {0x00});