diff options
| author | JF <jf@codingfield.com> | 2020-01-22 20:08:53 (GMT) |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2020-01-22 20:08:53 (GMT) |
| commit | eb7a1b3ac9cbacb74afb7fcd1d40c51a18c90060 (patch) | |
| tree | a0f886e007080ce0f3867dd7deb87fecd22ab212 /src/drivers/St7789.h | |
| parent | aa3e5c0c6f6f7bb9df02ae5d333dc6c4a6d2e744 (diff) | |
[WIP] Max SPI speed reached (119ms for a full refresh. Theo max : 240*240*16 = 115.2ms) using IRQ and DMA.
Code needs some cleaning before integration.
Diffstat (limited to 'src/drivers/St7789.h')
| -rw-r--r-- | src/drivers/St7789.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/St7789.h b/src/drivers/St7789.h index 8e4690b..eef051b 100644 --- a/src/drivers/St7789.h +++ b/src/drivers/St7789.h @@ -12,7 +12,7 @@ namespace Pinetime { void DrawPixel(uint16_t x, uint16_t y, uint32_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 NextDrawBuffer(const uint8_t* data, size_t size, size_t repeat = 0); void EndDrawBuffer(); void DisplayOn(); @@ -40,7 +40,7 @@ namespace Pinetime { 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); + void WriteSpi(const uint8_t* data, size_t size, size_t repeat = 0); enum class Commands : uint8_t { SoftwareReset = 0x01, |
