aboutsummaryrefslogtreecommitdiff
path: root/drivers/oled/oled_driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/oled/oled_driver.h')
-rw-r--r--drivers/oled/oled_driver.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/oled/oled_driver.h b/drivers/oled/oled_driver.h
index 58e2bb738..72ab21247 100644
--- a/drivers/oled/oled_driver.h
+++ b/drivers/oled/oled_driver.h
@@ -141,6 +141,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
141#if !defined(OLED_FONT_HEIGHT) 141#if !defined(OLED_FONT_HEIGHT)
142# define OLED_FONT_HEIGHT 8 142# define OLED_FONT_HEIGHT 8
143#endif 143#endif
144// Default brightness level
145#if !defined(OLED_BRIGHTNESS)
146# define OLED_BRIGHTNESS 255
147#endif
144 148
145#if !defined(OLED_TIMEOUT) 149#if !defined(OLED_TIMEOUT)
146# if defined(OLED_DISABLE_TIMEOUT) 150# if defined(OLED_DISABLE_TIMEOUT)
@@ -261,6 +265,12 @@ bool oled_off(void);
261// not 265// not
262bool is_oled_on(void); 266bool is_oled_on(void);
263 267
268// Sets the brightness of the display
269uint8_t oled_set_brightness(uint8_t level);
270
271// Gets the current brightness of the display
272uint8_t oled_get_brightness(void);
273
264// Basically it's oled_render, but with timeout management and oled_task_user calling! 274// Basically it's oled_render, but with timeout management and oled_task_user calling!
265void oled_task(void); 275void oled_task(void);
266 276