Remove secondFrameBuffer and instead add set_framebuffer method

This commit is contained in:
Patrick Horlebein
2020-04-06 17:38:24 +02:00
parent 81abd5eeac
commit ec6140317c
3 changed files with 18 additions and 19 deletions

View File

@@ -101,8 +101,7 @@ public:
static void drawHeatSymbol(uint8_t state);
static void presentSecondScreenBufferAnimatedBack();
static void presentSecondScreenBufferAnimated();
static void use_first_buffer();
static void use_second_buffer();
static void set_framebuffer(uint8_t *buffer);
private:
static void drawChar(char c); // Draw a character to a specific location
static const uint8_t* currentFont;// Pointer to the current font used for rendering to the buffer
@@ -114,7 +113,6 @@ private:
static int16_t cursor_x, cursor_y;
static uint8_t displayOffset;
static uint8_t screenBuffer[16 + (OLED_WIDTH * 2) + 10]; // The data buffer
static uint8_t secondFrameBuffer[OLED_WIDTH * 2]; // The second frame buffer
};
#endif /* OLED_HPP_ */