Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
--- 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);
}
