From 009828beac9bfe9c36d336a4de0d297f90aece52 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Mon, 28 Sep 2015 01:13:34 +0300 Subject: Initial version --- py/test.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 py/test.py (limited to 'py/test.py') 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") -- cgit v1.2.3