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
DmTftIli9325.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_ILI9325_h 00014 #define DM_TFT_ILI9325_h 00015 00016 #include "DmTftBase.h" 00017 00018 class DmTftIli9325 : public DmTftBase 00019 { 00020 public: 00021 DmTftIli9325(uint8_t wr=A4, uint8_t cs=A3, uint8_t dc=A5, uint8_t rst=A2); 00022 virtual ~DmTftIli9325(); 00023 virtual void init(void); 00024 private: 00025 void send8BitData(uint8_t data); 00026 void writeBus(uint8_t data); 00027 00028 virtual void setAddress(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1); 00029 virtual void sendCommand(uint8_t index); 00030 virtual void sendData(uint16_t data); 00031 00032 uint8_t _wr, _cs, _dc, _rst; 00033 static const uint16_t _width; 00034 static const uint16_t _height; 00035 #if defined (DM_TOOLCHAIN_ARDUINO) 00036 regtype *_pinDC, *_pinRST, *_pinWR; 00037 regsize _bitmaskDC, _bitmaskRST, _bitmaskWR; 00038 #elif defined (DM_TOOLCHAIN_MBED) 00039 DigitalOut* _pinDC, *_pinRST, *_pinWR; 00040 BusOut *_virtualPortD; 00041 #endif 00042 }; 00043 #endif 00044 00045 00046
Generated on Tue Jul 12 2022 19:30:31 by 1.7.2