Skip to content

Instantly share code, notes, and snippets.

@CelliesProjects
Created November 22, 2019 22:19
Show Gist options
  • Save CelliesProjects/b5e10357e4f36569ade31651b4da7fda to your computer and use it in GitHub Desktop.
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.
#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