From 833c5ae87aa89124451efafdf0cf9fc0400f4b03 Mon Sep 17 00:00:00 2001 From: brickbots Date: Fri, 6 Mar 2020 16:52:39 -0800 Subject: Buffer based OLED panning, write byte to buffer at arbitrary index (#8055) * Add buffer based single line pan, arbitrary byte write to buffer * Change dirty mask to inverse of OLED_BLOCK_TYPE for future proofing larger buffer sizes * Updating docs to include new functions * Updating to clarify scroll vs pan --- drivers/oled/oled_driver.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/oled/oled_driver.h') diff --git a/drivers/oled/oled_driver.h b/drivers/oled/oled_driver.h index e8a7188577..6d1cee9b79 100644 --- a/drivers/oled/oled_driver.h +++ b/drivers/oled/oled_driver.h @@ -200,7 +200,11 @@ void oled_write(const char *data, bool invert); // Advances the cursor to the next page, wiring ' ' to the remainder of the current page void oled_write_ln(const char *data, bool invert); +// Pans the buffer to the right (or left by passing true) by moving contents of the buffer +void oled_pan(bool left); + void oled_write_raw(const char *data, uint16_t size); +void oled_write_raw_byte(const char data, uint16_t index); #if defined(__AVR__) // Writes a PROGMEM string to the buffer at current cursor position -- cgit v1.2.3