Remove secondFrameBuffer and instead add set_framebuffer method
This commit is contained in:
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user