Set up mclk

This commit is contained in:
Jesse Hills 2022-06-16 20:27:47 +12:00
parent 35b1b5fae6
commit b1ad48c824
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

@ -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});