Giter Site home page Giter Site logo

quarto-rpi's Introduction

Quarto-RPI

Quarto Game to be played on a Joy-IT raspberry case, utilizing the SBC-ButtonMatrix.

Compiling

The project needs a few requirements to work properly. It was designed to use cross-compiling on a personnal computer. Thus you need to cross-compile these requirements to be able to build Quarto-RPI:

  • wiringPi
  • ncurses
  • cdk
  • SDL2
  • SDL2_ttf (along with freetype, libpng, and zlib)

These should be placed under the folder ./lib/rpi but you can place them anywhere, as long as you define the <LIBNAME>_RPI variables in the Makefile. Beware also of the name of the libraries, considering they will be used in the assets/run.sh script to locate the libraries.

You also need to define the following environment variables:

  • RPI_COMPILER=/path/to/cross-compiler to cross-compile
  • RPI_ADDRESS=<login>@<ipadress> to send automatically the built files

Note: you can also use a standard compiler, if you need to test UI related code on your computer.

A few Makefile commands:

  • make compiles the whole project
  • make run compiles the PC project (without wiringPi and GPIO support), and runs the application on the PC
  • make deploy compiles the RPI project, sends it to the raspberry, and runs the application on the RPI
  • make deploy-here does the same as above, but the UI is displayed on the PC (unstable)
  • make deploy-lib sends the libraries and run.sh to the RPI
  • make clean to clean the project. (This will not delete the RPI libraries)

Note: the first deployement usually takes a while considering that all the libraries need to be sent to the RPI.

Using the GPIOs only

Use the command

sudo dtc -I dts -O dtb -o /boot/overlays/breadboard.dtbo ./assets/breadboard.dts

and restart to use a new input device. Each arrow GPIO will be mapped to a key on the keyboard.

Demo

🚧 Work in progress 🚧

Note

This repository and its files are currently very barebones. It is a simple student project. This is all just made for fun and nothing too serious.

Credits

This software uses the following open source libraries:

quarto-rpi's People

Contributors

haransis avatar inao0 avatar

Watchers

 avatar  avatar  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.