Whichy display are you using to display your graphics? I believe that display 0 is the HDMI output on the Pi.
You'll need to tell pygame to use the TFT:
os.environ["SDL_FBDEV"] = "/dev/fb1"
You can directly call pygame.init() after this. No need to deal with different drivers etc. etc.
I've bought the same display. Here are my successful attempts to make it work on a RaspberryPi 3 B+ running Raspbian Stretch.
1. First attempt, involving specific device tree specification and configuration overwriting
From XPT2046 Touch Screen instructions for Raspbery Pi 3 thread, I found a GitHub repository with working configurations for several ...
There should not be a driver problem with the 2.8" display and RPi 2 newer kernels, as support is built in (ie you don't need the adafruit kernel) 4.0.7 works. The main problem is with the touch screen support. I have the same set up (but kernel 4.0.9-v7+).
To get the display to work, you need either the adafruit dts overlay file pitft28c-overlay.dts (which ...
If Minecraft on the pi uses OpenGL, this won't work because OGL will not work on the PiTFT. Adafruit has an explanation of this.
Examining the minecraft-pi binary downloaded from here reveals that it does link to the openGL-ES libs on the pi, so you will not be able to use it on the PiTFT.
Per the Adafruit Help! FAQ:
Doing an apt-get upgrade or rpi-update will blow away the custom PiTFT
You will have to reinstall the kernel.
If you had already made a working PiTFT setup, you may be able to reinstall the Adafruit kernel like so:
sudo apt-get install raspberrypi-kernel=1.20161027-1
If it tells you that the latest version is ...
The Pi 3 has a 1.2GHz quad-core processor and 1GB of RAM, while the Pi Zero has a 1GHz single-core processor and 512MB of RAM. It's expected that the Pi 3 would be faster on things like this. There's not really anything you can do.
Your comment about the HDMI output not having this trouble does make some sense. I don't think that the BCM2837 (the chip in ...
Yes it is possible.
I took a look at the link that is provided and that make me on track, for my concern and now i can give a little back.
I have createt a 99-fbturbo.conf in /etc/X11/xorg.conf.d/
And also ensured that there is not another .conf, that will interfere with / change /dev/fb0 in:
I don't know for certain, but I suspect the answer is "you can't" for the reasons given in their reply to a user requesting OpenGL support. Just in case that URL changes/disappears, I'll quote the relevant bits below;
Why does the PITFT not support OpenGL?
Are there technical limitations that prevent the screen from supporting OpenGL?
The 3V3 rail is only brought out on pins 1 and 17.
Your only choices appear to be
an external 3V3 power supply (but then you'd have the same problem connecting the grounds)
to carefully splice one of the 3V3 wires
to carefully solder an insulated wire to pins 1 or 17 on the underside of the board
EDITED TO ADD
There is another option
If the device needs ...
The PiTFT will only use two GPIO Ports (#24 and #25), if you don't use the buttons (source). Of course, the board will stack up to all of them, but you can buy a stacking header which will stick through the holes far enough for you to connect other hardware. To make sure you don't use ##24 and 25 twice, you might want to cut them off after soldering.
I've used a Python to send out Serial via the USB port. So yes its possible. You need to install the drivers. I think the most common is FTDI. More info here on creating an alias and calling from python - Get USB address.
Installing the FTDI driver was buried in this doc... took me a while to dig it up.
You can use something like this python script, to poll the input, and to run the toggle-backlight script when pressed.
import RPi.GPIO as GPIO
# set button 2 as input, with pull-up resistor
GPIO.setup(22, GPIO.IN, pull_up_down=GPIO.PUD_UP)
oldButtonState = True
After executing ./myapp -platform linuxfb:fb=/dev/fb1 I was able to run app
based on QWidget and see GUI on the 320x240 TFT display.
However in case of having qml objects I get following message:
This plugin does not support createPlatformOpenGLContext! Failed to create OpenGL context for format QSurfaceFormat( ... ). I tried to start an app with:
I've just stumbled on fbcp and tested it: works like a charm with the Adafruit modified Raspian Jessie-based PiTFT 3.5" Resistive Image for Pi 1 and Pi 2 (September 24, 2015):
Update I found another option which doesn't require fbcp: mplayer though SDL. Although the guide is for the 2.8" display, it still applies for the ...
it's easy to work on debian jessie, i assume that you have latest version installed and fully worked with spi enabled.
to make display working at boot follow this steps:
1) read the guide in previous answer "Cheap TFT display for Raspberry Pi"
2) create a new file called fbtft.conf under /etc/modules-load.d/ with command
sudo nano /etc/modules-load.d/...
While not on Android OS, I'd like to share my experience on getting it running a minimal debian/raspbian based Linux distro - Minibian https://minibianpi.wordpress.com/download/.
This device seems to be the same as the one here http://www.waveshare.com/wiki/3.5inch_RPi_LCD_(A) so those instructions work too
Raspberry Pi 3 (the latest ...
I manage to remove boot messages by modifying /boot/cmdline.txt, adding
This command allocate console to an unavailable framebuffer. You can get more info about this command here and use "con2fbmap" to reallocate console/frambuffer on-demand.
In order to display a mirrored splash screen, very quickly, i choose to loaded fbcp, plymouth and ...
I only wanted it for showing my terminal, so I found a great article that also happens to do this, without installing any new drivers.
Key information: This device's controller is an ILI9486, which is compatible with ILI9481. The driver for ILI9481 was already in my Raspberry Pi. Here's what I did to make it work:
sudo modprobe --first-time fbtft_device ...
instead of using mplayer to loop the gif, recompile the gif to loop on its own.
First, make the gif into a series of images.
$convert someGIF.gif *.jpeg
youll then have a bunch of jpegs. you can use a variety of image extensions. I used jpeg, but gif, png, tiff, and others may works as well.
next, recompile the images into an infinitely looping gif.
without using lxde or gnome or whatever
Gnome and LXDE are both "desktop environments" (DE's); I have a more in-depth explanation of what that means here (this is WRT a question about Lubuntu, but it applies equally to any normative GNU/Linux distribution including those used on the pi). You will need to understand that.
You don't need to use a DE, and ...
I just got it working under the Adafruit Raspbian Jessie image (although I am still fiddling with an inverted x/y touchscreen issue).
The secret seems to be:
1) do the detailed install outlined here:
When you edit the file ~/.kivy/config.ini per those instrucitons, also edit the [DISPLAY] section to set ...
I'm not sure I understand the confusion.
Gpios 17, 22, 23, and 27 (21 on early models) are brought out on the unit exterior. You can connect buttons to those pads which you can then read in software.
Gpio 18 is apparently used to switch the backlight on and off. There is no need to bring that out to the unit exterior. It is assumed you'll control the ...
The Pi hardware outputs composite video and HDMI (and can output a low resolution VGA if you are prepared to sacrifice most of the usable GPIOs).
Some LCD screens may be driven from SPI, I2C, or parallel GPIO. They tend to be medium to low resolution. They use driver chips such as agm1264k, bd663474, hx83xxx, ili93xx, ili94xx, pcd8544, ra8875, s6dxxxx, ...
Well, so I contacted the seller and they were kind enough to email me the link to the product: http://www.banggood.com/3_5-Inch-320-X-480-TFT-LCD-Display-Touch-Board-For-Raspberry-Pi-BB-p-958458.html
Then, I was redirected to this page (http://www.spotpear.com/learn/EN/raspberry-pi/Raspberry-Pi-LCD/Drive-the-LCD.html), which had everything I needed to ...
Apparently I should not give up after three days of research. More effort was required. Just few hours after posting this I finally found out the correct way to do this.
This method works with combination of RPi 2 and ILI9844 3.95 inch screen: Cheap TFT display for Raspberry Pi
Note: It requires downgrade to Raspbian Wheezy! It does not work for Raspbian ...
Check out this tutorial, it tells you how to wire it...
I know that the adafruit screen works with the Pi Zero with a few bugs, but I am not sure what brand the eBay screen is, I suggest not to get it from eBay, there are lots of screens that are compatible for the Pi Zero.
This one works with the Pi Zero :
Sorry about digging up an old thread, but I came across it while looking for ideas on setting up my own ILI9488 on a Pi, and I've got a solid hunch on this problem.
I have not tried this, but have seen this issue with other display controllers (ILI9341). There is an BGR/RGB parameter which sets the colour order. It looks like you have a blue/red swap issue (...