I am using the CANBUS shield in my proejct and I would like to use an OLED SPI display.
The problem is that the OLED display uses the US2066 controller and its SPI settings are LSBFIRST, MODE3.
I can successfuly use the CANBUS shield with a MAX31855 for example which uses the same settings as the CANBUS (MSBFIRST,MODE0), or use the OLED display with the MAX31855 alone but the CANBUS and the OLED display together are not working.
I am using transactional SPI to change the settings but if the CANBUS library and CAN.begin command are present, the sketch freezes.
I looked at the CANBUS library code and I see that it is not using transactional SPI. Changed the code to use beginTransaction in the _SELECT() function instead of just setting the CSPI to LOW and endTransaction in the _UNSELECT function but the result is the same.
Anyone has any idea how to overcome this issue?