Created
November 22, 2019 22:19
-
-
Save CelliesProjects/b5e10357e4f36569ade31651b4da7fda to your computer and use it in GitHub Desktop.
Simple poc to show how to detect a i2c wm8978 codec in esp32 arduino.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
void setup() { | |
// put your setup code here, to run once: | |
Wire.begin( 21, 22, 400000 ); | |
Wire.beginTransmission( 0X1A ); | |
uint8_t error = Wire.endTransmission(); | |
if ( error ) ESP_LOGI( TAG, "No codec found." ); | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment