5 Replies Latest reply on Dec 18, 2015 9:28 AM by Intel_Alvarado

    Using SPI with python to read accelerometer data

    xxChadxx

      Hi everyone,

      I am trying to use python to read data from mma7455

       

      currently this is the code I am using but I am always getting 0s.

       

      import mraa as m

      x = m.Spi(0)

      x.frequency(4000000)

      x.write_word(0xAC05)

      x.writeByte(0x08)

       

      but I am getting zeros on all accelerometer data.

      Please advice

       

      Thank you