MCUdude / SigmaDSP

A versatile Arduino library for interfacing with the ADAU1401, ADAU1701 and ADAU1702 audio DSPs
GNU Lesser General Public License v3.0
165 stars 33 forks source link

Power Shell script can't seem to get the DSP address right #2

Closed MCUdude closed 5 years ago

MCUdude commented 5 years ago

This is a problem I think @heapx would solve rather quickly (thanks for awesome build script BTW 🎉). I'll see if I can bring up an example for you in order to highlight the issue.

MCUdude commented 5 years ago

@heapx let's look the first example (1_Volume). If I execute the DSP_parameter_generator.sh script I get the following DSP and EEPROM addesses:

/* 7-bit i2c addresses */
#define DSP_I2C_ADDRESS (0x68 >> 1) & 0xFE
#define EEPROM_I2C_ADDRESS (0xA0 >> 1) & 0xFE

However if I execute the DSP_parameter_generator.ps1 script instead I get:

/* 7-bit i2c addresses */
#define DSP_I2C_ADDRESS (8 >> 1) & 0xFE
#define EEPROM_I2C_ADDRESS (0 >> 1) & 0xFE

It seems like the PowerShell script are struggling to get this DSP address and this EEPROM address.