COSA
An Object-Oriented Platform for Arduino Programming
ST7735.hh
Go to the documentation of this file.
1 
21 #ifndef COSA_ST7735_HH
22 #define COSA_ST7735_HH
23 
24 #include <GDDRAM.h>
25 
53 class ST7735 : public GDDRAM {
54 public:
60 #if defined(BOARD_ATTINYX4)
63 #elif defined(BOARD_ATTINYX5)
66 #else
69 #endif
70 
76  virtual uint8_t set_orientation(uint8_t direction);
77 
81  static const uint16_t SCREEN_WIDTH = 128;
82  static const uint16_t SCREEN_HEIGHT = 160;
83 
84 protected:
90  virtual const uint8_t* script()
91  {
92  return (s_script);
93  }
94 
98  static const uint8_t s_script[] PROGMEM;
99 };
100 
101 #endif
102 
static const uint16_t SCREEN_HEIGHT
Definition: ST7735.hh:82
static const uint8_t s_script[]
Definition: ST7735.hh:98
static const uint16_t SCREEN_WIDTH
Definition: ST7735.hh:81
Definition: GDDRAM.hh:31
ST7735(Board::DigitalPin cs=Board::D10, Board::DigitalPin dc=Board::D9)
Definition: ST7735.cpp:91
virtual const uint8_t * script()
Definition: ST7735.hh:90
Definition: ST7735.hh:53
virtual uint8_t set_orientation(uint8_t direction)
Definition: ST7735.cpp:97