Skip to content

How to write values to the settings 1 register? #45

Answered by jonas-merkle
jonas-merkle asked this question in Q&A
Discussion options

You must be logged in to vote

The following code is an example how to write values to the settings 1 register of the AS5047P sensor. This example can be adopted for the settings 2 register by changing the corresponding datatypes.
Please keep in mind that the code may need to be modified to be compatible with the hardware you are using. And please check (with the help of the sensor-datasheet) if the values are valid before writing the values into the Settings 1 register.

/**
 * @file main.cpp
 * @author Jonas Merkle [JJM] ([email protected])
 * @brief Write to the settings 1 register of a AS5047P sensor.
 * @date 2023-06-29
 * 
 * @copyright Copyright (c) 2023 Jonas Merkle. This project is released under the GPL-3.0 Licens…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jonas-merkle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation question Further information is requested
1 participant