Giter Club home page Giter Club logo

sdl2displaytest's Introduction

SDL2DisplayTest

SDL2DisplayTest

This is an OSD SDL2Display Test for the new OGST Gaming Console Kit from Hardkernel, it listens for a event from the right user button on the console. The program will run as a deamon to easily add it on startup scripts. You can add your own image which is of type Bitmap RGB565 and also TureTypeFonts

SDL2DisplayTest

Building

$ sudo apt-get install libsdl2-dev libsdl2-ttf-dev
$ git clone https://github.com/AreaScout/SDL2DisplayTest.git
$ ./build.sh

Add to autostart

here is an example of how it could look like in your /etc/rc.local file

[ `/sbin/lsmod | grep -c spi_s3c64xx` -ge 1 ] && rmmod spi_s3c64xx
modprobe spi_s3c64xx force32b=1
modprobe fbtft_device name=hktft9340 busnum=1 rotate=270
su root -c '/bin/rm -f /dev/fb1'
su root -c '/bin/mknod /dev/fb1 c 29 1'
su root -c '/bin/chmod 0666 /dev/fb1'
su root -c '/path/to/the/binary/OGSTDisplay'
su odroid -c 'cd /path/to/the/binary && ./OGSTDisplay odroid.bmp DroidSans-Bold.ttf'

exit 0

Usage

first run it as root, the gpio device sysfs entry has to be created

sudo OGSTDISPLAY
./OGSTDisplay some.bmp some.ttf

Visit https://forum.odroid.com/viewtopic.php?f=156&t=30979

sdl2displaytest's People

Contributors

areascout avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

alfredoarias

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.