running on raspberry pi 3B bookworm

This commit is contained in:
Patrick Haßel 2025-06-27 18:58:29 +02:00
parent 36da96c8e0
commit d2451c935e
5 changed files with 16 additions and 3 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
/data/ /data/
/venv/
/__pycache__/

7
_inside.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
cd "$(dirname "$0")" || exit 1
. venv/bin/activate
python main.py

View File

@ -8,8 +8,7 @@ from pygame import Surface
from pygame.time import Clock from pygame.time import Clock
from qrcode.main import QRCode from qrcode.main import QRCode
DEBUG: bool = True DEBUG: bool = False
# DEBUG: bool = False
WIDTH: int = 800 WIDTH: int = 800
HEIGHT: int = 480 HEIGHT: int = 480

0
main.py Normal file → Executable file
View File

5
start.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
cd "$(dirname "$0")" || exit 1
xinit ./_inside.sh