Caiou
Dependents: LCD_Proj LCD_imagetest LCD_Proj_rtc
Fork of DmTftLibrary by
Diff: DmTftS6D0164.h
- Revision:
- 14:2db7065edbec
- Parent:
- 2:59be7fca4581
diff -r 6ff2649b6c27 -r 2db7065edbec DmTftS6D0164.h --- a/DmTftS6D0164.h Fri Sep 18 14:59:13 2015 +0000 +++ b/DmTftS6D0164.h Mon Oct 12 08:35:35 2015 +0000 @@ -18,7 +18,11 @@ class DmTftS6D0164 : public DmTftBase { public: +#if defined (DM_TOOLCHAIN_ARDUINO) DmTftS6D0164(uint8_t wr=A4, uint8_t cs=A3, uint8_t dc=A5, uint8_t rst=A2); +#elif defined (DM_TOOLCHAIN_MBED) + DmTftS6D0164(PinName wr=A4, PinName cs=A3, PinName dc=A5, PinName rst=A2); +#endif virtual ~DmTftS6D0164(); virtual void init(void); private: @@ -29,13 +33,14 @@ virtual void sendCommand(uint8_t index); virtual void sendData(uint16_t data); - uint8_t _wr, _cs, _dc, _rst; static const uint16_t _width; static const uint16_t _height; #if defined (DM_TOOLCHAIN_ARDUINO) + uint8_t _wr, _cs, _dc, _rst; regtype *_pinDC, *_pinRST, *_pinWR; regsize _bitmaskDC, _bitmaskRST, _bitmaskWR; #elif defined (DM_TOOLCHAIN_MBED) + PinName _wr, _cs, _dc, _rst; DigitalOut* _pinDC, *_pinRST, *_pinWR; BusOut *_virtualPortD; #endif