Giter Site home page Giter Site logo

areascout / gaming-kit-tools Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 323 KB

Some tools to access the OGST Gaming Kit LCD and user button

License: GNU General Public License v3.0

Makefile 0.06% C 97.91% C++ 2.03%
tools gaming-console lcd-screen gpio-sensors

gaming-kit-tools's Introduction

Gaming-Kit-Tools

Gaming-Kit-Tools

Building

$ sudo apt-get install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev
$ git clone https://github.com/AreaScout/Gaming-Kit-Tools.git
$ cd Gaming-Kit-Tools
$ make
$ sudo make install

Usage

gpio_button tool:

Usage: ./gpio_button [-f] <cmd> [-r] <cmd> [-d]
        [-f] <cmd> command to execute when button is pressed
        [-r] <cmd> command to execute when button is released
        [-d] run as daemon

First run it as root with no command lime option, the gpio device sysfs entry has to be created After that you can add your script that has to be started when the right user button is pressed

img2fb tool:

Usage: ./img2fb [-i] <file> [-d]
        [-i] <file> valid image file types are JPG, PNG, TIF, WEBP
        [-d] disable aspect ratio

This tool displays an image on the LCD Gaming Kit, you don't need root rights for it

show_info tool:

Usage: ./show_info [-d] <num>
        Dim amount for OSD overlay (0 - 255, default 128)

Displays an info screen on the display, the current display contains is used as a background which you dim with a user defined amount, if the tool exits it writes back the display conatins

osd2fb tool:

Usage: ./osd2fb [-f] <font> [-i] <msg> [-s] [-x] [-y] [-c] [-w] [-o]
        [-f] <file> your TTF font to load
        [-i] <msg> string to display
        [-s] outline the string
        [-x] <num> x offset for the string, usually 0-320
        [-y] <num> y offset for the strinf, usually 0-240
        [-c] center the string
        [-w] <num> weight/size of the font (default 15)
        [-o] <num> draw overlay with transparency 0-255

Writes user defined OSD to the LCD

example:

Gaming-Kit-Tools

gaming-kit-tools's People

Contributors

areascout avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gaming-kit-tools's Issues

img2fb doesn't compile

i don't have it with me to show the error right now but img2fb is the only part that won't compile when running in ORA 1.5.2

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.