Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
123
Return to list New
Author: Jacaranda

5" Display For Raspberry Pi Pi2 Model B+ A+ used for OragePi 2

[Copy link]

1

Threads

9

Posts

277

Credits

Intermediate member

Rank: 3Rank: 3

Credits
277
Post time 2016-6-24 15:57:20 | Show all posts




This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

0

Threads

20

Posts

982

Credits

Senior member

Rank: 4

Credits
982
Post time 2016-12-7 14:10:16 | Show all posts
Hello.
Jacaranda can You put a small tutorial how to make that touchpanel to get work.
I have OPI PC and lcd waveshare 5 with touchpanel on SPI.
Thanks.

0

Threads

20

Posts

982

Credits

Senior member

Rank: 4

Credits
982
Post time 2016-12-9 01:09:35 | Show all posts
When I load your ads7846.ko file then it's not loaded.
Even modprobe doesn't load.
I've got this error:modprobe: ERROR: could not insert 'ads7846': Exec format error
Any idea why?

1

Threads

9

Posts

277

Credits

Intermediate member

Rank: 3Rank: 3

Credits
277
Post time 2017-1-18 05:55:37 | Show all posts
Kernel loboris?

0

Threads

2

Posts

17

Credits

Novice

Rank: 1

Credits
17
Post time 2017-1-30 03:58:05 | Show all posts
Jacaranda replied at 2015-10-19 11:51
platform_data in ads7846 driver module it's not true way. If any body know how made it right, please ...

Hi!

This is the right way to not include platform_data: https://github.com/notro/fbtft_tools/tree/master/ads7846_device

Thanks for pointing the right pins out (PC02/PA21) for me.

I think we will need use the following options in the modprobe.d for ads7846_device.ko (will test soon):

  1. options ads7846_device verbose=2 cs=0 model=7846 gpio_pendown=2 speed=1500000 keep_vref_on=1 swap_xy=1 pressure_max=255 x_plate_ohms=150 x_min=184 x_max=3869 y_min=141 y_max=3959
Copy the Code

GT

0

Threads

2

Posts

17

Credits

Novice

Rank: 1

Credits
17
Post time 2017-1-30 04:18:30 | Show all posts
Wolfman replied at 2016-12-9 01:09
When I load your ads7846.ko file then it's not loaded.
Even modprobe doesn't load.
I've got this err ...

Because the module is compiled for another kernel versiontag. You see this message even when the kernel version is same, but there is a custom tag added (for example a "+" sign when kernel compiled from dirthy sources, so the zipped kernel module's version could be 3.4.39+, while yours is 3.4.39).

However you can force load the module:

  1. modprobe --force ads7846
Copy the Code
It worked for me for kernel 3.4.39 (loboris).


1

Threads

2

Posts

15

Credits

Novice

Rank: 1

Credits
15
Post time 2017-5-20 22:59:12 | Show all posts
It is a workable solution. But may be anybody knows how to connect another spi device with second chip select (gpio chip select) ?

1

Threads

3

Posts

35

Credits

Novice

Rank: 1

Credits
35
Post time 2017-7-13 05:15:24 | Show all posts

Do you have the script.bin file for the orange pi one board? I have the exact same display.

1

Threads

3

Posts

35

Credits

Novice

Rank: 1

Credits
35
Post time 2017-7-26 00:37:11 | Show all posts
loboris replied at 2015-10-17 21:30
Thank you for your work.
I've got my 5" hdmi display working perfectly using your timing values (sl ...

So the 5inch lcd works out of the box in your images? Also i have an orange pi one not an orange pi pc...

0

Threads

1

Posts

14

Credits

Novice

Rank: 1

Credits
14
Post time 2017-8-30 18:57:51 | Show all posts
loboris replied at 2015-10-17 21:30
Thank you for your work.
I've got my 5" hdmi display working perfectly using your timing values (sl ...

Hi,your mod to the bin file worked great and now i am wondering if it can work in Anrdoid i also got touch working by this new git
https://github.com/Tomasz-Mankowski/ADS7846-X11-daemon
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-9-18 08:56 GMT+8 , Processed in 0.034597 second(s), 20 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list