summaryrefslogtreecommitdiff
path: root/py/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/test.py')
-rwxr-xr-xpy/test.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/py/test.py b/py/test.py
new file mode 100755
index 0000000..a104ba5
--- /dev/null
+++ b/py/test.py
@@ -0,0 +1,19 @@
+#!/usr/bin/python3.4
+
+import pykms
+
+card = pykms.Card()
+card.print_short()
+
+conn = card.get_first_connected_connector()
+
+mode = conn.get_default_mode()
+
+fb = pykms.Framebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
+pykms.draw_test_pattern(fb);
+
+crtc = conn.get_current_crtc()
+
+crtc.set_mode(conn, fb, mode)
+
+input("press enter to exit\n")