Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of N5110 by
Diff: N5110.cpp
- Revision:
- 20:b627f726b323
- Parent:
- 19:ba8addc061ea
--- 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
