File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,11 @@ void SPIClass::begin()
4444
4545 PORTMUX.TWISPIROUTEA |= _uc_mux;
4646
47- // We don't need HW SS since salve/master mode is selected via registers, so make it simply INPUT
48- pinMode (_uc_pinSS, INPUT);
4947 pinMode (_uc_pinMosi, OUTPUT);
5048 pinMode (_uc_pinSCK, OUTPUT);
5149 // MISO is set to input by the controller
5250
51+ // We don't need HW SS since salve/master mode is selected via registers
5352 SPI0.CTRLB |= (SPI_SSD_bm);
5453 SPI0.CTRLA |= (SPI_ENABLE_bm | SPI_MASTER_bm);
5554
Original file line number Diff line number Diff line change 4444#define PIN_SPI_MISO (12)
4545#define PIN_SPI_SCK (13)
4646#define PIN_SPI_MOSI (11)
47- #define PIN_SPI_SS (10 )
47+ #define PIN_SPI_SS (8 )
4848
4949static const uint8_t SS = PIN_SPI_SS ;
5050static const uint8_t MOSI = PIN_SPI_MOSI ;
Original file line number Diff line number Diff line change 4545#define PIN_SPI_MISO (33)
4646#define PIN_SPI_SCK (34)
4747#define PIN_SPI_MOSI (32)
48- #define PIN_SPI_SS (10 )
48+ #define PIN_SPI_SS (22 )
4949
5050static const uint8_t SS = PIN_SPI_SS ;
5151static const uint8_t MOSI = PIN_SPI_MOSI ;
You can’t perform that action at this time.
0 commit comments