Giter VIP home page Giter VIP logo

raspberry_pi3_arcade's Introduction

Raspberry PI3

  1. download and install SD cardFormatter for Mac (or windows) https://www.sdcard.org/downloads/formatter_4/index.html

  2. download NOOffBS https://www.raspberrypi.org/downloads/noobs/

  3. Format the SDcard

  4. Extract the NOOBS zipfile and copy the contents to the SDcard (1.83GB)

  5. Eject the SDcard

  6. Put in the raspberry pi connect keyboard monitor, mouse and power

  7. On the installation menu choose Raspbian (debian)

  8. Launch the terminal on the raspberry and:

    1. sudo apt-get install apache2

    2. sudo pip install flask

    3. sudo apt-get install git-core

    4. cd /home/Pi

    5. git clone git://git.drogon.net/wiringPi

    6. cd wiringPi

    7. ./build

    8. cd /var

    9. sudo chown pi:pi www

    10. cd /var/www

    11. git clone https://github.com/PH-F/raspberry_pi3_arcade.git

    12. mv /var/www/raspberry_pi3_arcade /var/www/app

    13. test with python /var/www/app/python/app.py & open the browser to http://localhost:5000

  9. Start the pythonscript at boot

    1. sudo chmod 755 /var/www/app/boot.sh
    2. sudo mkdir var/log/cron
    3. sudo chmod 777 var/log/cron/
    4. sudo crontab -e Add: @reboot sh /var/www/app/boot.sh > /var/log/cron/cronlog 2>&1
    5. sudo nano /etc/rc.local before exit 0 add:
      python /var/www/app/python/app.py
      
  10. Start the browser at boot

    1. Open the teminal and type: sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
    #@xscreensaver -no-splash # comment this line out to disable screensaver
    @xset s off
    @xset -dpms
    @xset s noblank
    @chromium-browser --incognito --kiosk http://localhost:5000
    
    1. save and reboot
    2. Note: crtl W will close the browser!

Run (in the background)

sudo python python/emulateKeyBoard.py

Build with Python & Javascript

GamePlay

  • key 1 = game
  • key 2 = movie
  • key 3 = quiz
  • key q = option 1
  • key w = option 2
  • key e = option 3
  • key r = option 4

raspberry_pi3_arcade's People

Contributors

ph-f avatar walhog avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.