Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revelstoke/python3.11 #4

Merged
merged 21 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ This software is designed to be used with the Raspberry Pi. If you would like to

Also, to use the X11 system from within a container, see this [Medium article](https://medium.com/geekculture/run-a-gui-software-inside-a-docker-container-dce61771f9).

WARNING!!! This repo is under rapid development as we move it to modern Python and put it into a container image to more easily be run and maintained.
WARNING!!! This repo is under rapid development as we move it to modern Python and put it into a container image to more easily be run and maintained.
4 changes: 4 additions & 0 deletions button.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ def __init__(self):

#Setup pins and board
gpio.setmode(gpio.BCM)
#Pin 22 is Team 2
gpio.setup(22, gpio.IN, pull_up_down=gpio.PUD_DOWN)
#Pin 4 is Team 3
gpio.setup(4, gpio.IN, pull_up_down=gpio.PUD_DOWN)
#Pin 17 is Team 1
gpio.setup(17, gpio.IN, pull_up_down=gpio.PUD_DOWN)
#GPIO Needs to be setup between 3.3v and pins above

#Put pins in variables
self.center_button = 22
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@

services:

# Building and testing environment
# Developing and testing environment
dev:
build:
context: .
dockerfile: Dockerfile
image: ghcr.io/btc-raspberrypiclub/jeopardy:latest
stdin_open: true
tty: true
command: ["/bin/bash"]
volumes:
#- ${PWD}:/app
- /tmp/.X11-unix:/tmp/.X11-unix
# Bring the DISPLAY through from the host
environment:
- DISPLAY=${DISPLAY:-:0}
privileged: true
profiles:
- build

# The actual application service for live
app:
image: ghcr.io/btc-raspberrypiclub/jeopardy:latest
stdin_open: true
Expand Down
5 changes: 0 additions & 5 deletions games/Example/categories.txt

This file was deleted.

3 changes: 0 additions & 3 deletions games/Example/players.txt

This file was deleted.

File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions games/Jeopardy/categories.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BEARS CATEGORY
BEETS CATEGORY
BATTLESTAR CATEGORY
GALACTICA LONG CATEGORY NAME
ALLURBASE CATEGORY
File renamed without changes.
5 changes: 5 additions & 0 deletions games/Jeopardy/players.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Team Alpha
Team Beta
Team Gamma
Team Delta
Team Epsilon
File renamed without changes.
118 changes: 0 additions & 118 deletions games/Prototype/INSTRUCTIONS.txt

This file was deleted.

5 changes: 0 additions & 5 deletions games/Prototype/amounts.txt

This file was deleted.

5 changes: 0 additions & 5 deletions games/Prototype/categories.txt

This file was deleted.

90 changes: 0 additions & 90 deletions games/Prototype/clues.txt

This file was deleted.

3 changes: 0 additions & 3 deletions games/Prototype/players.txt

This file was deleted.

4 changes: 0 additions & 4 deletions games/Prototype/rules.txt

This file was deleted.

Loading
Loading