Hi! Ive been working with the BMX055 and been trying to implement with SPI and havent been sucssefull with the reading in the magnetometer. I received the information that using the Mag in I2C and trying SPI after, something should be done to change the pin. I honestly didnt understand and would like to know if somoene could help me. I leave my program for arduino below hoping that somoene could help me or know what the problem is, since i can only reado 0,0,0 from the mag in SPI. And since i've used it in I2C and everything worked fine, i think is probably something that im missing.
Thank you very much for your attention and help!
int CSB1 = A1; int CSB2 = A2; int CSB3 = A3;
unsigned int x_lsb = 0x02; unsigned int y_lsb = 0x04; unsigned int z_lsb = 0x06;
const byte READ = 0b10000000;
unsigned long elp_time = micros(); unsigned long read_time = micros();