modified MMA8451Q library for firefly project
Fork of MMA8451Q by
Revision 5:2948042a73f1, committed 2016-06-20
- Comitter:
- bollocks
- Date:
- Mon Jun 20 06:29:58 2016 +0000
- Parent:
- 4:c4d879a39775
- Commit message:
- from firefly 2015
Changed in this revision
MMA8451Q.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r c4d879a39775 -r 2948042a73f1 MMA8451Q.cpp --- a/MMA8451Q.cpp Fri Oct 12 11:35:07 2012 +0000 +++ b/MMA8451Q.cpp Mon Jun 20 06:29:58 2016 +0000 @@ -28,6 +28,7 @@ MMA8451Q::MMA8451Q(PinName sda, PinName scl, int addr) : m_i2c(sda, scl), m_addr(addr) { // activate the peripheral + m_i2c.frequency(2000000); uint8_t data[2] = {REG_CTRL_REG_1, 0x01}; writeRegs(data, 2); }