Skip to content
Some tools to access the OGST Gaming Kit LCD and user button
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DroidSans-Bold.ttf Add: inital commit May 30, 2018
LICENSE Add: License Sep 26, 2018
Makefile Add: inital commit May 30, 2018
README.md Fix: url Aug 9, 2018
font.h Add: inital commit May 30, 2018
gpio_button.cpp Add: License header Sep 26, 2018
img2fb.cpp Fix: use of C11++ nullptr literal Dec 16, 2018
osd2fb.cpp Add: License header Sep 26, 2018
show_info.cpp

README.md

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

You can’t perform that action at this time.