GY-63_MS5611/libraries/hmc6352
2021-05-28 13:17:38 +02:00
..
.github/workflows add arduino-lint 2021-05-28 13:17:38 +02:00
examples update libraries E-I 2020-11-27 11:16:22 +01:00
test 2021-01-29 2021-01-29 12:31:58 +01:00
.arduino-ci.yml 2021-01-29 2021-01-29 12:31:58 +01:00
hmc6352.cpp 2021-01-29 2021-01-29 12:31:58 +01:00
hmc6352.h 2021-01-29 2021-01-29 12:31:58 +01:00
keywords.txt update libraries E-I 2020-11-27 11:16:22 +01:00
library.json 2021-01-29 2021-01-29 12:31:58 +01:00
library.properties 2021-01-29 2021-01-29 12:31:58 +01:00
LICENSE 2021-01-29 2021-01-29 12:31:58 +01:00
README.md 2021-01-29 2021-01-29 12:31:58 +01:00

Arduino CI License: MIT GitHub release

HMC6352

Arduino library for HMC6352 compass sensor

Description

BETA: WARNING: BETA: WARNING: BETA: WARNING: BETA:

This library is BETA, only tested partially and not thoroughly No guarantees, use at own risk, all disclaimers apply The example sketch can be used to config the compass. For switching operational mode one must reboot the system.

WARNING: BETA: WARNING: BETA: WARNING: BETA: WARNING:

Interface

TO elaborate

Check datasheet

Constructor

  • hmc6352(uint8_t device)
  • void begin(uint8_t sda, uint8_t scl) for ESP32 ea
  • void begin() for UNO

Base calls standby mode

  • int getHeading(void)
  • int askHeading(void)
  • int readHeading(void)
  • int wakeUp(void)
  • int sleep(void)

Expert calls

  • int factoryReset()
  • int setOperationalModus(hmcMode m, uint8_t freq, bool periodicReset)
  • int getOperationalModus()
  • int setOutputModus(uint8_t om)
  • int getOutputModus()
  • int callibrationOn(void)
  • int callibrationOff(void)
  • int setI2CAddress(uint8_t address)
  • int getI2CAddress()
  • int writeEEPROM(uint8_t address, uint8_t data)
  • int readEEPROM(uint8_t address)
  • int writeRAM(uint8_t address, uint8_t data)
  • int readRAM(uint8_t address)
  • int saveOpMode(byte OpMode) allow power users to set operational mode flags

NOT TESTED / unknown

Check datasheet

  • int setTimeDelay(uint8_t msec)
  • int getTimeDelay()
  • int setMeasurementSumming(uint8_t ms)
  • int getMeasurementSumming()
  • int updateOffsets(void)

Operation

See examples