Skip to content

Commit c60681c

Browse files
Add files via upload
1 parent f1df4b8 commit c60681c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

libraries/SPI/src/SPI.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ void SPIClass::setHwCs(bool use) {
144144
_use_hw_ss = use;
145145
}
146146

147+
void SPIClass::setSSInvert(bool invert) {
148+
if (_spi) {
149+
spiSSInvertout(_spi, invert);
150+
}
151+
}
152+
147153
void SPIClass::setFrequency(uint32_t freq) {
148154
SPI_PARAM_LOCK();
149155
//check if last freq changed

libraries/SPI/src/SPI.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ class SPIClass {
6363
~SPIClass();
6464
void begin(int8_t sck = -1, int8_t miso = -1, int8_t mosi = -1, int8_t ss = -1);
6565
void end();
66-
66+
6767
void setHwCs(bool use);
68+
void setSSInvert(bool invert);
6869
void setBitOrder(uint8_t bitOrder);
6970
void setDataMode(uint8_t dataMode);
7071
void setFrequency(uint32_t freq);

0 commit comments

Comments
 (0)