Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/examples/testris.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,13 @@ class pal:
grid_x_offset = border_x_offset + block_size
grid_y_offset = border_y_offset + block_size

# The touch targets sit on the board's border, so the touch zones cover
# the board, not the whole screen. A wide display that couldn't turn
# leaves empty space either side of the board.
keypad.x = border_x_offset
keypad.w = border_width
keypad.key_width = border_width / keypad.cols

# Calculate the banner dimensions in pixels
banner_width = border_width - (
block_size * 4
Expand Down
Loading