[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.
This commit is contained in:
JF committed 2020-01-22 21:08:53 +01:00
1 parent aa3e5c0c6f
commit eb7a1b3ac9
8 files changed
+114 -51

No files matched your search

+2 -2
View File
@@ -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,