raspi
This commit is contained in:
@ -22,6 +22,11 @@ import time
|
||||
import tomllib
|
||||
from pathlib import Path
|
||||
|
||||
# On a console-only machine (no X or Wayland session), tell SDL to draw
|
||||
# straight to the screen via KMS/DRM, so no desktop environment is needed.
|
||||
if not os.environ.get("DISPLAY") and not os.environ.get("WAYLAND_DISPLAY"):
|
||||
os.environ.setdefault("SDL_VIDEODRIVER", "kmsdrm")
|
||||
|
||||
import pygame
|
||||
|
||||
import camera as cam
|
||||
|
||||
Reference in New Issue
Block a user