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 <[email protected]>

Co-authored-by: Ryan <[email protected]>
This commit is contained in:
Gautham YerrojuandRyan authored and GitHub committed 2020-07-16 15:48:04 +10:00
1 parent 08b405e1e9
commit 92d0a71af7
3 files changed
+21

No files matched your search

+4
View File
@@ -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);