AS5048A SPI - Magnetic rotary encoder library

Issue: Bad example

Your code:

const int* angles = sensor.read_angle();
int angle = angles[0];
 ....
int degrees = As5048Spi::degrees(angle)/100;

Must be:

const int* angle;
....
int degrees = As5048Spi::degrees(*angle)/100;

You have to understand the term "pointer" correctly.