瀏覽代碼

Fixed AK4558_I2C_ADDR

The address was wrongly put to 0x10 + the two hardware set bits, while
it has to be 10 decimal, or 0x0A. Silly me.
dds
Michele Perla 9 年之前
父節點
當前提交
1a5ceb4eb5
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      control_ak4558.h

+ 1
- 1
control_ak4558.h 查看文件

// Chip Address 0 pin // Chip Address 0 pin
// set to 'H' by default, configurable to 'L' via a jumper on bottom side of the board // set to 'H' by default, configurable to 'L' via a jumper on bottom side of the board


#define AK4558_I2C_ADDR (0x10 + (AK4558_CAD1<<1) + AK4558_CAD0)
#define AK4558_I2C_ADDR (0x0A + (AK4558_CAD1<<1) + AK4558_CAD0)
// datasheet page 81: // datasheet page 81:
// This address is 7 bits long followed by the eighth bit that is a data direction bit (R/W). // This address is 7 bits long followed by the eighth bit that is a data direction bit (R/W).
// The most significant five bits of the slave address are fixed as “00100”. The next bits are // The most significant five bits of the slave address are fixed as “00100”. The next bits are

Loading…
取消
儲存