Zoltan Hudak / Mbed OS HMC1501_Hello

Dependencies:   HMC1501 HX711

Files at this revision

API Documentation at this revision

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;
 //