diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-01-28 18:23:32 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2019-01-31 11:42:14 -0800 |
| commit | 6145f08cc89946d138737b149d390265def67077 (patch) | |
| tree | bf8a2b345204a3eee6d690fe47e9c0190d79d0eb /shared-bindings/displayio/Display.h | |
| parent | 69bc5e189baef183918dc21dadaacf55ce66bee3 (diff) | |
Support adjustable backlight brightness
Diffstat (limited to 'shared-bindings/displayio/Display.h')
| -rw-r--r-- | shared-bindings/displayio/Display.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shared-bindings/displayio/Display.h b/shared-bindings/displayio/Display.h index 181afc941..906c3620d 100644 --- a/shared-bindings/displayio/Display.h +++ b/shared-bindings/displayio/Display.h @@ -56,4 +56,10 @@ bool displayio_display_refresh_queued(displayio_display_obj_t* self); void displayio_display_finish_refresh(displayio_display_obj_t* self); bool displayio_display_send_pixels(displayio_display_obj_t* self, uint32_t* pixels, uint32_t length); +bool common_hal_displayio_display_get_auto_brightness(displayio_display_obj_t* self); +void common_hal_displayio_display_set_auto_brightness(displayio_display_obj_t* self, bool auto_brightness); + +mp_float_t common_hal_displayio_display_get_brightness(displayio_display_obj_t* self); +bool common_hal_displayio_display_set_brightness(displayio_display_obj_t* self, mp_float_t brightness); + #endif // MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYBUSIO_DISPLAY_H |
