summaryrefslogtreecommitdiff
path: root/shared-module/displayio/Display.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-03-06 12:43:55 -0500
committerGitHub <noreply@github.com>2019-03-06 12:43:55 -0500
commit2eaa98ad7103ea4a03fc10fbcee7d2ec7a045a70 (patch)
tree90222f3495ac33bdf761300028e68e93798d2628 /shared-module/displayio/Display.c
parent233cfcd4a2eab4f1d1f84e5356e0873f7534c3fc (diff)
parent4145f87fcd25f5adc2bcca52f96fea3b9f965e48 (diff)
Merge pull request #1601 from penguindustin/master
added height and width attributes for displayio
Diffstat (limited to 'shared-module/displayio/Display.c')
-rw-r--r--shared-module/displayio/Display.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/shared-module/displayio/Display.c b/shared-module/displayio/Display.c
index 1c9ba5702..95c5cdfec 100644
--- a/shared-module/displayio/Display.c
+++ b/shared-module/displayio/Display.c
@@ -158,6 +158,14 @@ bool common_hal_displayio_display_get_auto_brightness(displayio_display_obj_t* s
return self->auto_brightness;
}
+uint16_t common_hal_displayio_display_get_width(displayio_display_obj_t* self){
+ return self->width;
+}
+
+uint16_t common_hal_displayio_display_get_height(displayio_display_obj_t* self){
+ return self->height;
+}
+
void common_hal_displayio_display_set_auto_brightness(displayio_display_obj_t* self, bool auto_brightness) {
self->auto_brightness = auto_brightness;
}