Modified version of the DmTftLibrary, optimized for the LPC4088 Experiment Base Board
Dependents: lpc4088_ebb_dm_calc lpc4088_ebb_dm_bubbles
Fork of DmTftLibrary by
DmTftHX8353C.h
00001 /********************************************************************************************** 00002 Copyright (c) 2014 DisplayModule. All rights reserved. 00003 00004 Redistribution and use of this source code, part of this source code or any compiled binary 00005 based on this source code is permitted as long as the above copyright notice and following 00006 disclaimer is retained. 00007 00008 DISCLAIMER: 00009 THIS SOFTWARE IS SUPPLIED "AS IS" WITHOUT ANY WARRANTIES AND SUPPORT. DISPLAYMODULE ASSUMES 00010 NO RESPONSIBILITY OR LIABILITY FOR THE USE OF THE SOFTWARE. 00011 ********************************************************************************************/ 00012 00013 #ifndef DM_TFT_HX8353C_h 00014 #define DM_TFT_HX8353C_h 00015 00016 #include "DmTftBase.h" 00017 00018 class DmTftHX8353C : public DmTftBase 00019 { 00020 public: 00021 #if defined (DM_TOOLCHAIN_ARDUINO) 00022 DmTftHX8353C(uint8_t mosi=D2, uint8_t clk=D3, uint8_t cs=D4, uint8_t dc=D5, uint8_t rst=D6); 00023 #elif defined (DM_TOOLCHAIN_MBED) 00024 DmTftHX8353C(uint8_t mosi=D2, uint8_t clk=D3, uint8_t cs=D4, uint8_t dc=SPECIAL_D5, uint8_t rst=D6); 00025 #endif 00026 virtual ~DmTftHX8353C(); 00027 virtual void init(void); 00028 private: 00029 void send8BitData(uint8_t data); 00030 void writeBus(uint8_t data); 00031 00032 virtual void setAddress(uint16_t x1,uint16_t y1,uint16_t x2,uint16_t y2); 00033 virtual void sendCommand(uint8_t index); 00034 virtual void sendData(uint16_t data); 00035 00036 uint8_t _mosi, _clk, _cs, _dc, _rst; 00037 static const uint16_t _width; 00038 static const uint16_t _height; 00039 #if defined (DM_TOOLCHAIN_ARDUINO) 00040 regtype *_pinDC, *_pinRST, *_pinMOSI, *_pinCLK; 00041 regsize _bitmaskDC, _bitmaskRST, _bitmaskMOSI, _bitmaskCLK; 00042 #elif defined (DM_TOOLCHAIN_MBED) 00043 DigitalOut* _pinDC, *_pinRST, *_pinMOSI, *_pinCLK; 00044 #endif 00045 }; 00046 #endif 00047 00048 00049
Generated on Tue Jul 12 2022 19:30:31 by 1.7.2