diff options
| author | JF002 <JF002@users.noreply.github.com> | 2020-01-26 15:44:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-26 15:44:26 +0100 |
| commit | 7c03810f46ff1f7accd2f5adb7404b4f2cb723d9 (patch) | |
| tree | f720612013c3518b54ecd22ccfc5aef6917d3023 /src/drivers/St7789.h | |
| parent | 9dc4e32e36eb1167ee241cdf8027089cad593cf1 (diff) | |
| parent | 6491a7c3a0738d6e6ef3bf57da460f61298d1cd9 (diff) | |
Merge pull request #19 from JF002/spi-dma
Spi dma
Diffstat (limited to 'src/drivers/St7789.h')
| -rw-r--r-- | src/drivers/St7789.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/drivers/St7789.h b/src/drivers/St7789.h index a32a96f9..9ecf9f27 100644 --- a/src/drivers/St7789.h +++ b/src/drivers/St7789.h @@ -10,19 +10,15 @@ namespace Pinetime { void Init(); void Uninit(); 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(); void DisplayOn(); void DisplayOff(); void Sleep(); void Wakeup(); - - private: SpiMaster& spi; uint8_t pinDataCommand; @@ -36,10 +32,7 @@ namespace Pinetime { void DisplayInversionOn(); void NormalModeOn(); void WriteToRam(); - - void SetAddrWindow(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1); - void WriteCommand(uint8_t cmd); void WriteSpi(const uint8_t* data, size_t size); @@ -63,7 +56,6 @@ namespace Pinetime { static constexpr uint16_t Width = 240; static constexpr uint16_t Height = 240; void RowAddressSet(); - }; } } |
