Skip to content

Commit dda6d79

Browse files
authored
spiclass::setSSInvert
1 parent 3ebf47b commit dda6d79

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libraries/SPI/src/SPI.cpp

Lines changed: 6 additions & 0 deletions
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+
spiSSInvert(_spi, invert);
150+
}
151+
}
152+
147153
void SPIClass::setFrequency(uint32_t freq) {
148154
SPI_PARAM_LOCK();
149155
//check if last freq changed

0 commit comments

Comments
 (0)