Override begin function to accept SPI object and a csPin. Add logic to beginTransmission, transmit and endTransmission methods to handle SPI communication. Refactored comm mode selection to use comm port pointers rather than separate flags to select the comm mode. Make sure all begin statements properly set unused comm port pointers to NULL.
Override begin function to accept SPI object and a csPin. Add logic to beginTransmission, transmit and endTransmission methods to handle SPI communication. Refactored comm mode selection to use comm port pointers rather than separate flags to select the comm mode. Make sure all begin statements properly set unused comm port pointers to NULL.