21 #ifndef COSA_GDDRAM_HH 22 #define COSA_GDDRAM_HH 65 virtual void draw_pixel(uint16_t x, uint16_t y);
102 virtual void fill_rect(uint16_t x, uint16_t y, uint16_t width, uint16_t height);
120 virtual const uint8_t*
script() = 0;
222 } __attribute__((packed));
235 } __attribute__((packed));
242 __attribute__((always_inline))
255 void write(uint16_t data, uint16_t count)
256 __attribute__((always_inline))
258 uint8_t high = data >> 8;
274 __attribute__((always_inline))
287 __attribute__((always_inline))
301 __attribute__((always_inline))
318 __attribute__((always_inline))
virtual void draw_image(uint16_t x, uint16_t y, Image *image)
uint8_t transfer(uint8_t data)
OutputPin m_dc
Data/Command select pin.
void write(Command cmd, uint16_t data)
GDDRAM(uint16_t width, uint16_t height, Board::DigitalPin cs, Board::DigitalPin dc)
bool m_initiated
Initialization state.
virtual const uint8_t * script()=0
virtual void fill_rect(uint16_t x, uint16_t y, uint16_t width, uint16_t height)
uint8_t transfer_next(uint8_t data)
void write(uint16_t data, uint16_t count)
virtual void draw_horizontal_line(uint16_t x, uint16_t y, uint16_t length)
virtual uint8_t set_orientation(uint8_t direction)
void write(Command cmd, uint8_t data)
virtual void draw_vertical_line(uint16_t x, uint16_t y, uint16_t length)
void transfer_start(uint8_t data)
void write(Command cmd, uint16_t x, uint16_t y)
void write(uint16_t data)