FRDM-KL46Z board sLCD demo code
Fork of FRDM-KL46Z LCD rtc Demo by
Diff: MMA8451Q/MMA8451Q.cpp
- Revision:
- 9:02f0249db903
- Parent:
- 8:18e86eb228ca
--- a/MMA8451Q/MMA8451Q.cpp Wed Oct 01 13:11:15 2014 +0000 +++ b/MMA8451Q/MMA8451Q.cpp Wed Oct 01 13:26:00 2014 +0000 @@ -141,15 +141,12 @@ writeRegs(data,2);//Write in the updated value to put the device in Active Mode } - void MMA8451Q::readRegs(int addr, uint8_t * data, int len) { char t[1] = {addr}; m_i2c.write(m_addr, t, 1, true); m_i2c.read(m_addr, (char *)data, len); } - - void MMA8451Q::writeRegs(uint8_t * data, int len) { m_i2c.write(m_addr, (char *)data, len); }