diff options
author | JF <jf@codingfield.com> | 2020-01-19 19:47:49 +0100 |
---|---|---|
committer | JF <jf@codingfield.com> | 2020-01-19 19:47:49 +0100 |
commit | b4bd41cd562f89bcd320ac0985e9b33c766babe1 (patch) | |
tree | e64c79bd4f61452c93ee45b75aa26bbf8252d731 /src/Components/Gfx/Gfx.h | |
parent | 9dc4e32e36eb1167ee241cdf8027089cad593cf1 (diff) |
Implement the SPI driver using DMA.
Diffstat (limited to 'src/Components/Gfx/Gfx.h')
-rw-r--r-- | src/Components/Gfx/Gfx.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Components/Gfx/Gfx.h b/src/Components/Gfx/Gfx.h index 9bd07fee..d8728701 100644 --- a/src/Components/Gfx/Gfx.h +++ b/src/Components/Gfx/Gfx.h @@ -21,10 +21,14 @@ namespace Pinetime { void Wakeup(); private: + static constexpr uint8_t width = 240; + static constexpr uint8_t height = 240; + + uint16_t buffer[width]; // 1 line buffer Drivers::St7789& lcd; - const uint8_t width = 240; - const uint8_t height = 240; + void pixel_draw(uint8_t x, uint8_t y, uint16_t color); + void SetBackgroundColor(uint16_t color); }; } } |