Caiou
Dependents: LCD_Proj LCD_imagetest LCD_Proj_rtc
Fork of DmTftLibrary by
DmTftS6D0164.h@0:d6ff5fa503e8, 2014-05-13 (annotated)
- Committer:
- displaymodule
- Date:
- Tue May 13 09:31:24 2014 +0000
- Revision:
- 0:d6ff5fa503e8
- Child:
- 2:59be7fca4581
First version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
displaymodule | 0:d6ff5fa503e8 | 1 | /********************************************************************************************** |
displaymodule | 0:d6ff5fa503e8 | 2 | Copyright (c) 2014 DisplayModule. All rights reserved. |
displaymodule | 0:d6ff5fa503e8 | 3 | |
displaymodule | 0:d6ff5fa503e8 | 4 | Redistribution and use of this source code, part of this source code or any compiled binary |
displaymodule | 0:d6ff5fa503e8 | 5 | based on this source code is permitted as long as the above copyright notice and following |
displaymodule | 0:d6ff5fa503e8 | 6 | disclaimer is retained. |
displaymodule | 0:d6ff5fa503e8 | 7 | |
displaymodule | 0:d6ff5fa503e8 | 8 | DISCLAIMER: |
displaymodule | 0:d6ff5fa503e8 | 9 | THIS SOFTWARE IS SUPPLIED "AS IS" WITHOUT ANY WARRANTIES AND SUPPORT. DISPLAYMODULE ASSUMES |
displaymodule | 0:d6ff5fa503e8 | 10 | NO RESPONSIBILITY OR LIABILITY FOR THE USE OF THE SOFTWARE. |
displaymodule | 0:d6ff5fa503e8 | 11 | ********************************************************************************************/ |
displaymodule | 0:d6ff5fa503e8 | 12 | |
displaymodule | 0:d6ff5fa503e8 | 13 | #ifndef DM_TFT_S6D0164_h |
displaymodule | 0:d6ff5fa503e8 | 14 | #define DM_TFT_S6D0164_h |
displaymodule | 0:d6ff5fa503e8 | 15 | |
displaymodule | 0:d6ff5fa503e8 | 16 | #include "DmTftBase.h" |
displaymodule | 0:d6ff5fa503e8 | 17 | |
displaymodule | 0:d6ff5fa503e8 | 18 | class DmTftS6D0164 : public DmTftBase |
displaymodule | 0:d6ff5fa503e8 | 19 | { |
displaymodule | 0:d6ff5fa503e8 | 20 | public: |
displaymodule | 0:d6ff5fa503e8 | 21 | DmTftS6D0164(uint8_t wr=A4, uint8_t cs=A3, uint8_t dc=A5, uint8_t rst=A2); |
displaymodule | 0:d6ff5fa503e8 | 22 | virtual ~DmTftS6D0164(); |
displaymodule | 0:d6ff5fa503e8 | 23 | void init(void); |
displaymodule | 0:d6ff5fa503e8 | 24 | private: |
displaymodule | 0:d6ff5fa503e8 | 25 | void send8BitData(uint8_t data); |
displaymodule | 0:d6ff5fa503e8 | 26 | void writeBus(uint8_t data); |
displaymodule | 0:d6ff5fa503e8 | 27 | |
displaymodule | 0:d6ff5fa503e8 | 28 | virtual void setAddress(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1); |
displaymodule | 0:d6ff5fa503e8 | 29 | virtual void sendCommand(uint8_t index); |
displaymodule | 0:d6ff5fa503e8 | 30 | virtual void sendData(uint16_t data); |
displaymodule | 0:d6ff5fa503e8 | 31 | |
displaymodule | 0:d6ff5fa503e8 | 32 | uint8_t _wr, _cs, _dc, _rst; |
displaymodule | 0:d6ff5fa503e8 | 33 | static const uint16_t _width; |
displaymodule | 0:d6ff5fa503e8 | 34 | static const uint16_t _height; |
displaymodule | 0:d6ff5fa503e8 | 35 | #if defined (DM_TOOLCHAIN_ARDUINO) |
displaymodule | 0:d6ff5fa503e8 | 36 | regtype *_pinDC, *_pinRST, *_pinWR; |
displaymodule | 0:d6ff5fa503e8 | 37 | regsize _bitmaskDC, _bitmaskRST, _bitmaskWR; |
displaymodule | 0:d6ff5fa503e8 | 38 | #elif defined (DM_TOOLCHAIN_MBED) |
displaymodule | 0:d6ff5fa503e8 | 39 | DigitalOut* _pinDC, *_pinRST, *_pinWR; |
displaymodule | 0:d6ff5fa503e8 | 40 | BusOut *_virtualPortD; |
displaymodule | 0:d6ff5fa503e8 | 41 | #endif |
displaymodule | 0:d6ff5fa503e8 | 42 | }; |
displaymodule | 0:d6ff5fa503e8 | 43 | #endif |
displaymodule | 0:d6ff5fa503e8 | 44 | |
displaymodule | 0:d6ff5fa503e8 | 45 | |
displaymodule | 0:d6ff5fa503e8 | 46 |