$ 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
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: