magneto4 2.0.0.0
|
Magneto4 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Magneto4 Click example.
Reads and logs magnetic field strength values if magnetic field strength values bigger than 3000, start magnetic linear position mode,
when moving the sensor from left to right the position for 1 step is reduced.
The demo application is composed of two sections :
Initializes Driver init and sets start encoder position on the zero. Reads and logs magnetic field strength values. For starting an encoder, it is necessary that the magnetic field strength is greater than 3000.
When moving the sensor from left to right, one step is added and when moving from right to left, the position for 1 step is reduced.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |