added support for LSM303DLHC e-Compass; (#783)

fixed the spelling in the Connection error message; Initial support for LSM303DLHC added;
Added LSM303DLHC to smoketest and added an example;
Removed unnecessary comments;
fixed format error;
squashed and ready for merge;
This commit is contained in:
Bryan Souza
2025-08-10 23:47:22 -07:00
committed by GitHub
parent 833990f44d
commit 303ec94529
5 changed files with 349 additions and 1 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ type Configuration struct {
MagDataRate uint8
}
var errNotConnected = errors.New("lsm303agr: failed to communicate with either acel or magnet sensor")
var errNotConnected = errors.New("lsm303agr: failed to communicate with either accel or magnet sensor")
// New creates a new LSM303AGR connection. The I2C bus must already be configured.
//