for 522 mbed basic operate

Revision:
15:70127e08ed27
Parent:
14:2db7065edbec
--- a/DmTftSsd2119.h	Mon Oct 12 08:35:35 2015 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,58 +0,0 @@
-/**********************************************************************************************
- Copyright (c) 2014 DisplayModule. All rights reserved.
-
- Redistribution and use of this source code, part of this source code or any compiled binary
- based on this source code is permitted as long as the above copyright notice and following
- disclaimer is retained.
-
- DISCLAIMER:
- THIS SOFTWARE IS SUPPLIED "AS IS" WITHOUT ANY WARRANTIES AND SUPPORT. DISPLAYMODULE ASSUMES
- NO RESPONSIBILITY OR LIABILITY FOR THE USE OF THE SOFTWARE.
- ********************************************************************************************/
-
-#ifndef DM_TFT_SSD2119_h
-#define DM_TFT_SSD2119_h
-
-#include "DmTftBase.h"
-
-class DmTftSsd2119 : public DmTftBase
-{
-public:
-#if defined (DM_TOOLCHAIN_ARDUINO)
-  DmTftSsd2119(uint8_t cs, uint8_t dc);
-#elif defined (DM_TOOLCHAIN_MBED)
-  DmTftSsd2119(PinName cs, PinName dc, PinName mosi, PinName miso, PinName clk);
-#endif
-  virtual ~DmTftSsd2119();
-  virtual void init(void);
-  virtual void setPixel(uint16_t x, uint16_t y, uint16_t color);
-
-  virtual void setAddress(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1);
-  virtual void sendData(uint16_t data);
-  
-private:
-  void send8BitData(uint8_t data);
-  void writeBus(uint8_t data);
-
-  virtual void sendCommand(uint8_t index);
-
-
-  static const uint16_t _width;
-  static const uint16_t _height;
-#if defined (DM_TOOLCHAIN_ARDUINO)
-  uint8_t _cs, _dc;
-  regtype *_pinDC;
-  regsize _bitmaskDC;
-  uint8_t _spiSettings;
-#elif defined (DM_TOOLCHAIN_MBED)
-  PinName _cs, _dc;
-  DigitalOut *_pinDC;
-  SPI spi;
-#endif
-};
-
-
-#endif
-
-
-