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 HMC5883L by
Revision 6:f9836a4caacf, committed 2015-08-14
- Comitter:
- s1200058
- Date:
- Fri Aug 14 04:54:47 2015 +0000
- Parent:
- 5:c9ce1eeaf001
- Commit message:
- test
Changed in this revision
| HMC5883L.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HMC5883L.cpp Tue Dec 10 10:58:28 2013 +0000
+++ b/HMC5883L.cpp Fri Aug 14 04:54:47 2015 +0000
@@ -50,7 +50,7 @@
void HMC5883L::init()
{
// init - configure your setup here
- setConfigurationA(AVG8_SAMPLES | OUTPUT_RATE_15); // 8 sample average, 15Hz, normal mode
+ setConfigurationA(AVG8_SAMPLES | OUTPUT_RATE_75); // 8 sample average, 15Hz, normal mode
setConfigurationB(0x20); // default gain
setMode(CONTINUOUS_MODE); // continuous sample mode
wait(0.006);//wait 6ms as told in the datasheet
