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.
Revision 1:668c95f5e6f9, committed 2020-09-19
- Comitter:
- hudakz
- Date:
- Sat Sep 19 20:22:45 2020 +0000
- Parent:
- 0:7eed1f44df4a
- Commit message:
- Example program for the HMC1501 magnetic angle sensor.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7eed1f44df4a -r 668c95f5e6f9 main.cpp --- a/main.cpp Sat Sep 19 17:58:10 2020 +0000 +++ b/main.cpp Sat Sep 19 20:22:45 2020 +0000 @@ -5,7 +5,7 @@ // DigitalOut led1(LED1); HX711 hx711(3.2f, D2, D3, 32); // avdd in Volts, sck pin, dout pin, gain -HMC1501 hmc1501(-35.5, 47.05); // measured by rotating a magnet: minV [mV], maxV [mV] +HMC1501 hmc1501(-35.5, 47.05); // minV [mV], maxV [mV]: measured by rotating a magnet in front of the chip Ticker ticker; volatile bool tick = false; //