Resolved! Good night. I have a LIS2DH12TR over an ATSAML21E17B. I´m reading the values of axis (x,y,x) transforming the values to degres (from -90º to 90º) but I need degrees from 0 to 360. I have tested a lot of formulas but nothing. Any idea? Ty.
This is the configuration of accelerometer:// Enable Block Data Update lis2dh12_block_data_update_set(&dev_ctx, PROPERTY_DISABLE); // Set Output Data Rate lis2dh12_data_rate_set(&dev_ctx, LIS2DH12_ODR_100Hz); // Set full scale lis2dh12_full_scale_set...