Skip to content

kris-sum/joypad-votesys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

joypad-votesys

Joypad (http://www.joypadbar.co.uk) voting system, for VideoGameDemocracy : https://www.youtube.com/watch?v=jbLW-RlVprc

This is python code for running a voting booth, which is powered by a Raspberry Pi and using its GPIO functions.

PreRequisites: apt-get the following:

python-tkinter python-imaging python-imaging-tk python-pygame

HW should have GPIO inputs pulled down, we detect on rising edge.

Execute with :

sudo python run.py

Pre-configure your voting by editing the resources directory, files should be like this:

file description
1a.txt Text file containing the first vote heading for the left column (column A)
1b.txt Text file containing the first vote heading for the rightt column (column B)
1a.gif or 1a.jpg The first vote image file for the left column
1b.gif or 1b.jpg the first vote image file for the right column
2a.txt second vote text ...
2b.txt second vote text ...
2a.gif second vote image ...
2b.gif second vote image ...

Certain code settings can be modified inside Joypadui.py:

setting name description
timerSeconds How long people get to vote (in seconds)
timeOnVoteResults How long should the system stay on the vote results screen for before moving on to the next vote

Contact Joypad Management for more information. Code written by Kris of Switch Systems Ltd.

About

Joypad voting system

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages