// define a led pin. #define LED_PIN 13
// define the chip select port. #define AS5047P_CHIP_SELECT_PORT A2
debug
Angle: 311.70
#########################
Error Information:
-------------------------
- Framing error: 0
- Invalid command: 0
- Parity error: 0
#########################
Diagnostic Information:
-------------------------
- AGC Value: 255
- Offset comp.: 1
- CORDIC overflow: 0
- MAG too high: 0
- MAG too low: 1
#########################
ref
- https://github.com/jonas-merkle/AS5047P