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 FXOS8700CQ by
Revision 5:3e0b32441a88, committed 2016-10-26
- Comitter:
- elmkom
- Date:
- Wed Oct 26 18:38:57 2016 +0000
- Parent:
- 4:e2fe752b881e
- Commit message:
- gsma version
Changed in this revision
| FXOS8700CQ.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r e2fe752b881e -r 3e0b32441a88 FXOS8700CQ.cpp
--- a/FXOS8700CQ.cpp Tue Jun 03 19:02:19 2014 +0000
+++ b/FXOS8700CQ.cpp Wed Oct 26 18:38:57 2016 +0000
@@ -7,7 +7,8 @@
FXOS8700CQ::FXOS8700CQ(PinName sda, PinName scl, int addr) : dev_i2c(sda, scl), dev_addr(addr)
{
// Initialization of the FXOS8700CQ
- dev_i2c.frequency(I2C_400K); // Use maximum I2C frequency
+ // dev_i2c.frequency(I2C_400K); // Use maximum I2C frequency
+ dev_i2c.frequency(100000);
uint8_t data[6] = {0, 0, 0, 0, 0, 0}; // to write over I2C: device register, up to 5 bytes data
// TODO: verify WHOAMI?
