summaryrefslogtreecommitdiff
path: root/py/test.py
blob: 7625f101213e10aa3e07f9605464638eeaf239b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/python3

import pykms
from helpers import *

card = pykms.Card()

conn = card.get_first_connected_connector()

mode = conn.get_default_mode()

fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
pykms.draw_test_pattern(fb);

crtc = get_crtc_for_connector(conn)

crtc.set_mode(conn, fb, mode)

input("press enter to exit\n")