Skip to content

Commit

Permalink
Add missing Wire.begin()
Browse files Browse the repository at this point in the history
#27 related
  • Loading branch information
MCUdude committed May 3, 2022
1 parent f2a7be9 commit 9cfcd0c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions examples/0_Template/0_Template.ino
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,25 @@ SigmaDSP dsp(Wire, DSP_I2C_ADDRESS, 48000.00f /*,12*/);
//DSPEEPROM ee(Wire, EEPROM_I2C_ADDRESS, 256, LED_BUILTIN);


void setup()
{
void setup()
{
Serial.begin(9600);
Serial.println(F("SigmaDSP 0_Template example\n"));

Wire.begin();
dsp.begin();
//ee.begin();

delay(2000);


Serial.println(F("Pinging i2c lines...\n0 -> deveice is present\n2 -> device is not present"));
Serial.print(F("DSP response: "));
Serial.println(dsp.ping());
//Serial.print(F("EEPROM ping: "));
//Serial.println(ee.ping());


// Use this step if no EEPROM is present
Serial.print(F("\nLoading DSP program... "));
loadProgram(dsp);
Expand All @@ -64,7 +65,7 @@ void setup()
}


void loop()
void loop()
{
// Nothing to do here!
}

0 comments on commit 9cfcd0c

Please sign in to comment.