I have been working on attiny85 uC using Arduino IDE. But I have been facing problems as it is my first project using attiny85 with Arduino sketch. My task is to control ADXL362 sensor which most of you may have work with but my constraint is to implement it through SPI comm. but to work with attiny have to use compact SPI library by jchristenen on github.
I have used the standard SPI library at first which is not helpful in my case so i have switched to tinySPI library to limit the functions. But now when I try to read the temp/ or any axis data through it. This gives me error saying serial is not defined. I have modified the libraries a bit to only include those functions that are of my use and removed extra functions.
I want to ask that does serial comm. make some problem with SPI or does the data intermingled if we try to use SPI comm and at the same time try to look at serial the output of the programme.
Any seniors help would be much appreciated.