COSA
An Object-Oriented Platform for Arduino Programming
ILI9341.hh
Go to the documentation of this file.
1 
21 #ifndef COSA_ILI9341_HH
22 #define COSA_ILI9341_HH
23 
24 #include <GDDRAM.h>
25 
57 class ILI9341 : public GDDRAM {
58 public:
64 #if defined(BOARD_ATTINYX4)
67 #elif defined(BOARD_ATTINYX5)
70 #else
73 #endif
74 
78  static const uint16_t SCREEN_WIDTH = 240;
79  static const uint16_t SCREEN_HEIGHT = 320;
80 
81 protected:
87  virtual const uint8_t* script()
88  {
89  return (s_script);
90  }
91 
95  static const uint8_t s_script[] PROGMEM;
96 };
97 #endif
ILI9341(Board::DigitalPin cs=Board::D10, Board::DigitalPin dc=Board::D9)
Definition: ILI9341.cpp:99
static const uint8_t s_script[]
Definition: ILI9341.hh:95
static const uint16_t SCREEN_WIDTH
Definition: ILI9341.hh:78
Definition: GDDRAM.hh:31
virtual const uint8_t * script()
Definition: ILI9341.hh:87
static const uint16_t SCREEN_HEIGHT
Definition: ILI9341.hh:79