Author Topic: i2c MUX + Rfduino  (Read 1363 times)

kevinpk

  • RFduino Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
i2c MUX + Rfduino
« on: April 22, 2015, 01:21:48 PM »
I'm trying to communicate over i2c with a multiplexer (Semtech SX1509QB) which controls a bank of LEDs. I began with i2c code for the BMA250 accelerometer, which works perfectly well. When I probe the SDA and SCL lines with an oscilloscope, I can see that data is transferring across. However, no LEDs turn on. The MUX + LED circuit was designed per the app note in the SX1509QB data sheet (http://www.semtech.com/images/datasheet/sx150x_89qb.pdf). If anyone has a lot of experience interfacing with i2c components, please look at my code for any glaring mistakes. Thanks!

kevinpk

  • RFduino Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: i2c MUX + Rfduino
« Reply #1 on: April 23, 2015, 07:40:02 AM »
As is normally the case, the problem is I completely botched the code. I was not addressing the registers correctly. Re-reading the data sheet proved useful. Functional (but ugly) sketch update is attached. Hope this helps someone some day.

 

anything