summaryrefslogtreecommitdiff
path: root/shared-module/protomatter/Protomatter.c
diff options
context:
space:
mode:
Diffstat (limited to 'shared-module/protomatter/Protomatter.c')
-rw-r--r--shared-module/protomatter/Protomatter.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/shared-module/protomatter/Protomatter.c b/shared-module/protomatter/Protomatter.c
index 37721cb1c..e7fa4ba9a 100644
--- a/shared-module/protomatter/Protomatter.c
+++ b/shared-module/protomatter/Protomatter.c
@@ -198,3 +198,12 @@ void common_hal_protomatter_protomatter_refresh(protomatter_protomatter_obj_t* s
_PM_swapbuffer_maybe(&self->core);
}
+int common_hal_protomatter_protomatter_get_width(protomatter_protomatter_obj_t* self) {
+ return self->width;
+}
+
+int common_hal_protomatter_protomatter_get_height(protomatter_protomatter_obj_t* self) {
+ int computed_height = (self->rgb_count / 3) << (self->addr_count);
+ return computed_height;
+}
+