2019-10-16 01:34 AM
2019-10-16 04:18 PM
> I am getting warnings that AccY, AccZ and Avg are not being used.
Usually the compiler is correct.
Try to disable optimization. Optimization removes unused code and variables.
As you see, lines 144, 145 are optimized out.
-- pa
2019-10-16 04:29 PM
Probably in a register in MCU and FPU. Look at the actual assembler generated and where it is holding the values.
Get rid of all the delays, and print values to a console. Shouldn't need to step this stuff.