Sakura IoT Platform b
Fork of SakuraIO by
Diff: SakuraIO_SPI.cpp
- Revision:
- 4:85955eb2e61a
- Parent:
- 0:8d34375d954c
--- a/SakuraIO_SPI.cpp Sat Nov 19 12:34:23 2016 +0000 +++ b/SakuraIO_SPI.cpp Mon Nov 21 14:10:51 2016 +0000 @@ -36,6 +36,10 @@ return ret; } -SakuraIO_SPI::SakuraIO_SPI(SPI &_spi, DigitalOut &_cs): spi(_spi), cs(_cs){ +SakuraIO_SPI::SakuraIO_SPI(SPI &_spi, PinName _cs): spi(_spi), cs(_cs){ cs = 1; } + +SakuraIO_SPI::SakuraIO_SPI(PinName _mosi, PinName _miso, PinName _sck, PinName _cs): spi(_mosi, _miso, _sck), cs(_cs){ + cs = 1; +}