notro / fbtft

Linux Framebuffer drivers for small TFT LCD display modules. Development has moved to https://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/tree/drivers/staging/fbtft?h=staging-testing
1.85k stars 494 forks source link

Raspberry + fbtft + piTFT on CE1 + Python #106

Closed bandibandi closed 10 years ago

bandibandi commented 10 years ago

Hello,

If anyone know how to solve this problem please help me out. I can't figure out how can i use the following scenario:

I would like to use an Adafruit piTFT, only the LCD panel on CE1. I don't use the touchpanel. I have to use an RFID reader, an RC522 also on SPI bus, it is on CE0, so i this is my problem, i wish to use the piTFT on CE1 without the touch panel.

I don't know how to call modprobe fbtft.... in console, maybe this is the only problem. I wired the piTFT pin CE0 to the Raspberry CE1.

notro commented 10 years ago

add cs=1 to the fbtft_device arguments, default is cs=0

bandibandi commented 10 years ago

Thank you for your answer. I got only white screen.

Where should i add that argument? I can't find it in the /etc/modules

notro commented 10 years ago

Where should i add that argument?

Wherever you load fbtft_device. On Raspian this is usually /etc/modules. For testing you just load it manually. Make sure it is not loaded lsmod

Check that the display driver uses spi0.1: dmesg | grep graphics

bandibandi commented 10 years ago

I try to use your image now. I commented out the following row in /etc/modules: stmpe_device cs=1 chip=stmpe610.... I not found the device load in /etc/modules

What should i change to use spi0.1?

I use the 2014-01-07-wheezy-raspbian-2014-03-12-fbtft-pitft image

notro commented 10 years ago

I not found the device load in /etc/modules

This image has the drivers built into the the kernel proper (kernel.img). Arguments to fbtft_device are given on the kernel commandline.

Add to /boot/cmdline.txt

fbtft_device.cs=1
notro commented 10 years ago

Closing issue since there has been no activity for more than 2 months. Reopen if needed.