We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df52bdf commit 9a34a9dCopy full SHA for 9a34a9d
adafruit_fruitjam/peripherals.py
@@ -79,6 +79,19 @@ def request_display_config(width, height):
79
)
80
supervisor.runtime.display = framebufferio.FramebufferDisplay(fb)
81
82
+def get_display_config():
83
+ """
84
+ Get the current display size configuration.
85
+
86
+ :return: width: The width of the display in pixels.
87
+ :return: height: The height of the display in pixels.
88
+ :return: pixel_depth of the display in pixels
89
90
+ try:
91
+ display = (picodvi.Framebuffer.width, picodvi.Framebuffer.height, picodvi.Framebuffer.color_depth)
92
+ return display
93
+ except ValueError as e:
94
+ return (None, None, None)
95
96
class Peripherals:
97
"""Peripherals Helper Class for the FruitJam Library
0 commit comments