Driver Library for our displays

Dependents:   dm_bubbles dm_calc dm_paint dm_sdcard_with_adapter ... more

Revision:
14:2db7065edbec
Parent:
4:92d019216e28
--- a/DmTftS6D0164.cpp	Fri Sep 18 14:59:13 2015 +0000
+++ b/DmTftS6D0164.cpp	Mon Oct 12 08:35:35 2015 +0000
@@ -10,9 +10,16 @@
  NO RESPONSIBILITY OR LIABILITY FOR THE USE OF THE SOFTWARE.
  ********************************************************************************************/
 
+ //Tested on NUCLEO-F401RE, LPCXpresso11U68 platform.
+
 #include "DmTftS6D0164.h"
 
-DmTftS6D0164::DmTftS6D0164(uint8_t wr, uint8_t cs, uint8_t dc, uint8_t rst) : DmTftBase(176, 220) {
+#if defined (DM_TOOLCHAIN_ARDUINO)
+DmTftS6D0164::DmTftS6D0164(uint8_t wr, uint8_t cs, uint8_t dc, uint8_t rst) : DmTftBase(176, 220) 
+#elif defined (DM_TOOLCHAIN_MBED)  
+DmTftS6D0164::DmTftS6D0164(PinName wr, PinName cs, PinName dc, PinName rst) : DmTftBase(176, 220) 
+#endif
+{
   _wr = wr;
   _cs = cs;
   _dc = dc;
@@ -110,10 +117,10 @@
   pinMode(_wr, OUTPUT);
   pinMode(_dc,OUTPUT);
 #elif defined (DM_TOOLCHAIN_MBED)
-  _pinRST = new DigitalOut((PinName)_rst);
-  _pinCS = new DigitalOut((PinName)_cs);
-  _pinWR = new DigitalOut((PinName)_wr);
-  _pinDC = new DigitalOut((PinName)_dc);
+  _pinRST = new DigitalOut(_rst);
+  _pinCS = new DigitalOut(_cs);
+  _pinWR = new DigitalOut(_wr);
+  _pinDC = new DigitalOut(_dc);
   _virtualPortD = new BusOut(D0, D1, D2, D3, D4, SPECIAL_D5, D6, D7);
 #endif