diff options
Diffstat (limited to 'main/InovaLedDisplay.h')
| -rw-r--r-- | main/InovaLedDisplay.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/InovaLedDisplay.h b/main/InovaLedDisplay.h index b394708..a1d9ad9 100644 --- a/main/InovaLedDisplay.h +++ b/main/InovaLedDisplay.h @@ -16,16 +16,18 @@ class InovaLedDisplay : public virtual Adafruit_GFX { void drawPixel(int16_t x, int16_t y, uint16_t c); - void updateDisplay(void); + void swapBuffer(void); void runDisplay(void); void stopDisplay(void); private: - uint16_t displayBuffer[NUM_ROW][NUM_COL / 8]; // each column is two bits, so 8 can fit in 16-bit integer + uint16_t displayBuffer[2][NUM_ROW][NUM_COL / 8]; // each column is two bits, so 8 can fit in 16-bit integer spi_device_handle_t spi; bool run = true; + bool shouldSwapBuffer = false; + uint8_t backBufferIndex = 0; gpio_num_t latch, oe, addr0, addr1, addr2; }; |
