summaryrefslogtreecommitdiff
path: root/shared-module/framebufferio/FramebufferDisplay.h
diff options
context:
space:
mode:
authorJeff Epler <jeff@adafruit.com>2020-04-20 07:09:12 -0500
committerGitHub <noreply@github.com>2020-04-20 07:09:12 -0500
commit276241b9626078d2e998300ee3b5ff6f7822aa37 (patch)
treef3f3c87e5acf90e4b171ebf27858e7994f07cb4d /shared-module/framebufferio/FramebufferDisplay.h
parent1a71c8c51577cc7014d5db1c05084778c0b977e9 (diff)
parent898c09c35e994402ae0bafb25dba5ba284838a82 (diff)
Merge pull request #2775 from jepler/rgbmatrix
Rename Protomatter to RGBMatrix
Diffstat (limited to 'shared-module/framebufferio/FramebufferDisplay.h')
-rw-r--r--shared-module/framebufferio/FramebufferDisplay.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/shared-module/framebufferio/FramebufferDisplay.h b/shared-module/framebufferio/FramebufferDisplay.h
index a7b91a522..1b68d2ab0 100644
--- a/shared-module/framebufferio/FramebufferDisplay.h
+++ b/shared-module/framebufferio/FramebufferDisplay.h
@@ -4,6 +4,7 @@
* The MIT License (MIT)
*
* Copyright (c) 2019 Scott Shawcroft for Adafruit Industries
+ * Copyright (c) 2020 Jeff Epler for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -66,12 +67,22 @@ typedef bool (*framebuffer_set_brightness_fun)(mp_obj_t, mp_float_t);
typedef mp_float_t (*framebuffer_get_brightness_fun)(mp_obj_t);
typedef bool (*framebuffer_set_auto_brightness_fun)(mp_obj_t, bool);
typedef bool (*framebuffer_get_auto_brightness_fun)(mp_obj_t);
+typedef int (*framebuffer_get_width_fun)(mp_obj_t);
+typedef int (*framebuffer_get_height_fun)(mp_obj_t);
+typedef int (*framebuffer_get_color_depth_fun)(mp_obj_t);
+typedef int (*framebuffer_get_bytes_per_cell_fun)(mp_obj_t);
+typedef int (*framebuffer_get_native_frames_per_second_fun)(mp_obj_t);
typedef struct _framebuffer_p_t {
MP_PROTOCOL_HEAD // MP_QSTR_protocol_framebuffer
framebuffer_get_bufinfo_fun get_bufinfo;
framebuffer_swapbuffers_fun swapbuffers;
framebuffer_deinit_fun deinit;
+ framebuffer_get_width_fun get_width;
+ framebuffer_get_height_fun get_height;
+ framebuffer_get_color_depth_fun get_color_depth;
+ framebuffer_get_bytes_per_cell_fun get_bytes_per_cell;
+ framebuffer_get_native_frames_per_second_fun get_native_frames_per_second;
framebuffer_get_brightness_fun get_brightness;
framebuffer_set_brightness_fun set_brightness;
framebuffer_get_auto_brightness_fun get_auto_brightness;