subsys/fb/cfb: Introduce cfb_framebuffer_invert function

Adds the cfb_framebuffer_invert function to invert Pixels in the
Character Framebuffer

Signed-off-by: Diego Sueiro <diego.sueiro@gmail.com>
This commit is contained in:
Diego Sueiro 2018-11-04 09:01:02 +00:00 committed by Anas Nashif
commit b6528469df
2 changed files with 23 additions and 0 deletions

View file

@ -100,6 +100,15 @@ int cfb_print(struct device *dev, char *str, u16_t x, u16_t y);
*/
int cfb_framebuffer_clear(struct device *dev, bool clear_display);
/**
* @brief Invert Pixels.
*
* @param dev Pointer to device structure for driver instance
*
* @return 0 on success, negative value otherwise
*/
int cfb_framebuffer_invert(struct device *dev);
/**
* @brief Finalize framebuffer and write it to display RAM,
* invert or reorder pixels if necessary.