Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for constant offset correction #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MaxMaeder
Copy link
Contributor

In this PR, I've added support for setting and getting the offsets for the sensor's constant offet correction feature.

New functions:

  • bool setOffset(enum mlx90393_axis, uint16_t offset)
  • uint16_t getOffset(enum mlx90393_axis)

As well as the following supporting functions to save these offsets (and other configuration) to non-volatile storage:

  • bool memoryStore()
  • bool memoryRecall()

Thanks for taking a look!

@MaxMaeder
Copy link
Contributor Author

It looks like the CI is erroring in bool writeRegister(uint8_t, uint16_t) on ESP32/8266, a function I didn't touch. Strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant