Izmijenjeno u odnosu na SoftwareSPI
Fork of N5110 by
Diff: N5110.cpp
- Revision:
- 20:b627f726b323
- Parent:
- 19:ba8addc061ea
diff -r ba8addc061ea -r b627f726b323 N5110.cpp --- a/N5110.cpp Thu Apr 23 18:57:52 2015 +0000 +++ b/N5110.cpp Wed May 25 07:59:24 2016 +0000 @@ -6,12 +6,13 @@ */ #include "mbed.h" #include "N5110.h" +#include "SWSPI.h" N5110::N5110(PinName pwrPin, PinName scePin, PinName rstPin, PinName dcPin, PinName mosiPin, PinName sclkPin, PinName ledPin) { - spi = new SPI(mosiPin,NC,sclkPin); // create new SPI instance and initialise + spi = new SWSPI(mosiPin,PTC0,sclkPin); // create new SPI instance and initialise initSPI(); // set up pins as required