diff options
| author | brickbots <rich@brickbots.com> | 2020-03-06 16:52:39 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-07 00:52:39 +0000 |
| commit | 833c5ae87aa89124451efafdf0cf9fc0400f4b03 (patch) | |
| tree | 8d3e3af5a67ad772990cc4174c54217452292403 /drivers/oled/oled_driver.h | |
| parent | 57de9e65ef58ad72c88830a57e68b1203a3e8f9a (diff) | |
| download | qmk_firmware-833c5ae87aa89124451efafdf0cf9fc0400f4b03.tar.gz qmk_firmware-833c5ae87aa89124451efafdf0cf9fc0400f4b03.zip | |
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
Diffstat (limited to 'drivers/oled/oled_driver.h')
| -rw-r--r-- | drivers/oled/oled_driver.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/oled/oled_driver.h b/drivers/oled/oled_driver.h index e8a718857..6d1cee9b7 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); | |||
| 200 | // Advances the cursor to the next page, wiring ' ' to the remainder of the current page | 200 | // Advances the cursor to the next page, wiring ' ' to the remainder of the current page |
| 201 | void oled_write_ln(const char *data, bool invert); | 201 | void oled_write_ln(const char *data, bool invert); |
| 202 | 202 | ||
| 203 | // Pans the buffer to the right (or left by passing true) by moving contents of the buffer | ||
| 204 | void oled_pan(bool left); | ||
| 205 | |||
| 203 | void oled_write_raw(const char *data, uint16_t size); | 206 | void oled_write_raw(const char *data, uint16_t size); |
| 207 | void oled_write_raw_byte(const char data, uint16_t index); | ||
| 204 | 208 | ||
| 205 | #if defined(__AVR__) | 209 | #if defined(__AVR__) |
| 206 | // Writes a PROGMEM string to the buffer at current cursor position | 210 | // Writes a PROGMEM string to the buffer at current cursor position |
