diff options
author | Gautham Yerroju <gautham.yerroju@gmail.com> | 2020-07-15 22:48:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-16 15:48:04 +1000 |
commit | 92d0a71af71973ac3f80398ed4f7f61dd97733b3 (patch) | |
tree | db3eaf53df756a728633581968f72a026af0074c /docs | |
parent | 08b405e1e93fbd1aa9aa061ce4ee271b6ac9e60c (diff) | |
download | qmk_firmware-92d0a71af71973ac3f80398ed4f7f61dd97733b3.tar.gz |
OLED driver function to set pixels (#9713)
* Add a function to set individual pixels
* Add documentation for oled_write_pixel
* use smaller data type for oled_write_pixel
* Fix boundary check edge case
* Update oled_write_pixel doc
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/feature_oled_driver.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/feature_oled_driver.md b/docs/feature_oled_driver.md index 772ce57bd..5f3095198 100644 --- a/docs/feature_oled_driver.md +++ b/docs/feature_oled_driver.md @@ -247,6 +247,10 @@ void oled_write_raw_byte(const char data, uint16_t index); // Writes a PROGMEM string to the buffer at current cursor position void oled_write_raw_P(const char *data, uint16_t size); +// Sets a specific pixel on or off +// Coordinates start at top-left and go right and down for positive x and y +void oled_write_pixel(uint8_t x, uint8_t y, bool on); + // Can be used to manually turn on the screen if it is off // Returns true if the screen was on or turns on bool oled_on(void); |