summaryrefslogtreecommitdiff
path: root/src/drivers/St7789.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2019-12-07 19:15:33 +0100
committerJF <jf@codingfield.com>2019-12-07 19:15:33 +0100
commit528fc5661679feeef91e76d633c94c945bb0a3df (patch)
treedba56aaf213dfa7eba9692293e1915fccd344be7 /src/drivers/St7789.h
parent6fbb6c8f70b2103fd88d8d9da3ce884a283b1bfd (diff)
The font is now fixed width.
HUGE performance improvement of the display driver.
Diffstat (limited to 'src/drivers/St7789.h')
-rw-r--r--src/drivers/St7789.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/St7789.h b/src/drivers/St7789.h
index bd7f9799..97427753 100644
--- a/src/drivers/St7789.h
+++ b/src/drivers/St7789.h
@@ -12,6 +12,10 @@ namespace Pinetime {
void DrawPixel(uint16_t x, uint16_t y, uint32_t color);
void FillRectangle(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint16_t color);
+ void BeginDrawBuffer(uint16_t x, uint16_t y, uint16_t width, uint16_t height);
+ void NextDrawBuffer(const uint8_t* data, size_t size);
+ void EndDrawBuffer();
+
private:
SpiMaster& spi;