Skip to content

Commit

Permalink
Merge pull request #4 from btc-raspberrypiclub/revelstoke/python3.11
Browse files Browse the repository at this point in the history
Revelstoke/python3.11
  • Loading branch information
Agent-E11 authored Apr 18, 2024
2 parents b514c39 + 6ff66e6 commit c008cd0
Show file tree
Hide file tree
Showing 34 changed files with 29 additions and 701 deletions.
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

0 comments on commit c008cd0

Please sign in to comment.