Driver Library with inverted screen and increased SPI speed (16MHz). You need to use this library with the sx1280
Dependents: MSNV2-Terminal_V1-6 SX1280DevKit SX126xDevKit SX126xDevKit ... more
Fork of DmTftLibrary by
Diff: DmTftIli9325.h
- Revision:
- 14:2db7065edbec
- Parent:
- 2:59be7fca4581
--- a/DmTftIli9325.h Fri Sep 18 14:59:13 2015 +0000 +++ b/DmTftIli9325.h Mon Oct 12 08:35:35 2015 +0000 @@ -18,7 +18,11 @@ class DmTftIli9325 : public DmTftBase { public: +#if defined (DM_TOOLCHAIN_ARDUINO) DmTftIli9325(uint8_t wr=A4, uint8_t cs=A3, uint8_t dc=A5, uint8_t rst=A2); +#elif defined (DM_TOOLCHAIN_MBED) + DmTftIli9325(PinName wr, PinName cs, PinName dc, PinName rst); +#endif virtual ~DmTftIli9325(); virtual void init(void); private: @@ -29,16 +33,18 @@ 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 + BusOut * _virtualPortD; +#endif }; #endif