Display application window on PiTFT

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
mjbennetts
 
Posts: 3
Joined: Sun Oct 06, 2013 10:04 pm

Display application window on PiTFT

Post by mjbennetts »

Hi,

I have successfully setup my PiTFT and run through the examples (e.g. the mplay video example), but now I want to get hacking.
How can I launch applications and have them display on the PiTFT from the command line without starting a full X window manager (e.g startx)?
Also, is there any sample code (e.g. Python, C/C++, Java, etc) showing how to create application that can take full advantage of the PiTFT and it's touch features?

Regards,
Matt

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Display application window on PiTFT

Post by adafruit_support_mike »

mjbennetts wrote:How can I launch applications and have them display on the PiTFT from the command line without starting a full X window manager (e.g startx)?
If a program can run without needing X, it should have a command line option that lets you tell it what framebuffer to use. Feed that "/dev/fb1".
mjbennetts wrote:Also, is there any sample code (e.g. Python, C/C++, Java, etc) showing how to create application that can take full advantage of the PiTFT and it's touch features?
Here's a network-aware camera: https://learn.adafruit.com/diy-wifi-ras ... m/pi-setup

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”