waveshare spotpear 3.5

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

waveshare spotpear 3.5

Postby tritron » Tue Aug 25, 2015 4:25 pm

I just setup raspberry pi 2 with my favorite distro. I installed 3.5" display and got it working in 10 minutes.
I added this to my /boot/config.txt
$this->bbcode_second_pass_code('', '
device_tree=bcm2709-rpi-2-b.dtb <--- this is for raspberry pi2
device_tree_param=i2c_arm=on
device_tree_param=spi=on
device_tree_param=i2s=on
device_tree_overlay=piscreen
dtoverlay=ads7846,cs=1,penirq=17,swapxy=1,xmin=200,xmax=3900,ymin=200,ymax=3900,pmax=255,xohms=60
gpu_mem=128

')
I created fbtft.conf in /etc/modprobe.d
$this->bbcode_second_pass_code('', '
options flexfb nobacklight regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0x28,-1,0x11,-1,0x29,-3 width=480 height=320
options fbtft_device name=flexfb speed=16000000 gpios=reset:25,dc:24')
I edidted nano /etc/X11/xorg.conf.d/99-fbturbo.conf and changed fb0 to fb1

I also added this line to end of /boot/config.txt
$this->bbcode_second_pass_code('', 'dtoverlay=ads7846,speed=500000,penirq=17,swapxy=1')
I added folowing modules
i2c-bcm2708
i2c-dev
flexfb
fbtft_device
ads7846_device
Finally I created nano /etc/X11/xorg.conf.d/99-calibration.conf
$this->bbcode_second_pass_code('', 'Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "3900 240 3900 240"
EndSection')
tritron
 
Posts: 83
Joined: Thu Jun 16, 2011 7:16 pm

Re: waveshare spotpear 3.5

Postby prajwal » Mon Aug 31, 2015 8:55 am

Hi

I am trying to get a Waveshare 5 inch (Five Inch) LCD touch screen display to work with the RPi2 (model B). I am running an Arch Linux Arm system on the RPi2.

I am following the steps provided in this post because this appears to be the only instruction set disucssing the setting up of a waveshare touchscreen on the RPi2 running Arch Linux Arm.

I have followed the steps described above, except for 1 change where I changed the height and width to 800 and 480 respectively (in the code for the fbtft.conf provided in the post above).

The problem I am now facing is that the system seems to be able to realise that there is a touch device attached (xinput_calibrator launches without giving an error). But the touch from the pen / finger is not being recognised. There is no response whatsoever when I try and tap using the pen.

Can anyone help?

Thanks in advance
Prajwal
Last edited by prajwal on Tue Sep 01, 2015 5:27 pm, edited 1 time in total.
prajwal
 
Posts: 8
Joined: Fri Jul 31, 2015 6:26 am

Re: waveshare spotpear 3.5

Postby WarheadsSE » Tue Sep 01, 2015 5:37 am

$this->bbcode_second_pass_quote('prajwal', 'A')rch Arm Linux

Arch Linux ARM, no other mixing of the words is correct.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: waveshare spotpear 3.5

Postby prajwal » Tue Sep 01, 2015 5:27 pm

Edited...!
prajwal
 
Posts: 8
Joined: Fri Jul 31, 2015 6:26 am

Re: waveshare spotpear 3.5

Postby prajwal » Tue Sep 01, 2015 8:47 pm

UPDATE:

I managed to get the 5 inch screen running on the RPi2.

Because RPi2 runs an ARMv7, I have included my solution under the ARMv7 category. The solution that worked for me is available in the following post:
http://archlinuxarm.org/forum/viewtopic.php?f=60&t=9246
prajwal
 
Posts: 8
Joined: Fri Jul 31, 2015 6:26 am


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 7 guests