Testé pour projet BTS SN

Fork of MODMAX7456 by Andy K

Revision:
1:780cc760c05f
Parent:
0:d7cd54ad4c3d
diff -r d7cd54ad4c3d -r 780cc760c05f MAX7456.cpp
--- a/MAX7456.cpp	Tue Nov 16 10:47:25 2010 +0000
+++ b/MAX7456.cpp	Sat Apr 30 17:10:04 2016 +0000
@@ -90,7 +90,13 @@
 void
 MAX7456::init(PinName mosi, PinName miso, PinName sclk, const char *name, PinName cs, PinName rst, PinName vsync)
 {
-    _ssp = new SPI(mosi, miso, sclk, name);
+    // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+    // Here code change !!!! "name" is not use in new library
+    // Christian Dupaty 03/2016
+    // original is :
+    //_ssp = new SPI(mosi, miso, sclk, name);
+    // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+    _ssp = new SPI(mosi, miso, sclk);
     _cs  = new DigitalOut(cs);
     _rst = new DigitalOut(rst);    
     if (vsync != NC) {