Hot answers tagged

8

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.


8

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 ...


5

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 ...


4

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.


4

Per the Adafruit Help! FAQ: Doing an apt-get upgrade or rpi-update will blow away the custom PiTFT kernel. 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 ...


4

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 ...


3

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. First: 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: /usr/share/X11/xorg.conf.d/ My /etc/X11/xorg.conf.d/99-...


3

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? ...


3

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 ...


3

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. And, ...


3

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.


3

You can use something like this python script, to poll the input, and to run the toggle-backlight script when pressed. #!/usr/bin/python import RPi.GPIO as GPIO import time import subprocess GPIO.setmode(GPIO.BCM) # set button 2 as input, with pull-up resistor GPIO.setup(22, GPIO.IN, pull_up_down=GPIO.PUD_UP) oldButtonState = True while True: ...


3

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: ./myapp -...


3

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): fbcp & omxplayer /path/to/video 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 ...


3

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/...


3

[disclaimer] 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 H/W wise Raspberry Pi 3 (the latest ...


3

I manage to remove boot messages by modifying /boot/cmdline.txt, adding fbcon=map:2 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 ...


3

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 ...


2

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. ...


2

You might also want to check out Python OS project - it's a GUI framework running on displays like these, it implements a GUI with attachable applications and provides UI elements.


2

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 ...


2

You can try to use a tool called fbcopy that will duplicate on the TFT what's being sent to HDMI. Here is a working tutorial on How to mirror/copy the HDMI output to the display.


2

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 ...


2

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, ...


2

Try installing Wheezy instead of Jessie: I had the same problem on the 2.8" capacitive TFT after upgrading Raspbian to Jessie; but it runs ok with latest Wheezy release.


2

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: https://github.com/mrichardson23/rpi-kivy-screen When you edit the file ~/.kivy/config.ini per those instrucitons, also edit the [DISPLAY] section to set ...


2

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 ...


2

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 ...


2

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 : http://www.jameco.com/webapp/wcs/stores/servlet/...


2

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 (...


Only top voted, non community-wiki answers of a minimum length are eligible