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

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
123Next
Return to list New
View: 7196|Reply: 23

Orange Pi PC 3.95 inch display test

[Copy link]

2

Threads

30

Posts

250

Credits

Intermediate member

Rank: 3Rank: 3

Credits
250
Post time 2016-6-8 17:58:58 | Show all posts |Read mode
Edited by mariuszb at 2016-6-20 19:33

I plugged in and tested the 3.95 inch display with Orange Pi PC and Armbian Jessy.
It can be used for own use, this is only a test program  


(2 files added :  displaytft.c and fonts.h)
Just compile and run displayTFT.c file  (example directory)  ( LCD also display CPU temperature)





This post contains more resources

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

x

10

Threads

221

Posts

2006

Credits

Gold member

Rank: 6Rank: 6

Credits
2006
Post time 2016-6-9 03:35:11 | Show all posts
What is the difference between flexiti/WiringOP and zhaolei/WiringOP ?


2

Threads

30

Posts

250

Credits

Intermediate member

Rank: 3Rank: 3

Credits
250
 Author| Post time 2016-6-9 04:09:11 | Show all posts
Edited by mariuszb at 2016-6-15 16:08

DisplayTFT.c file in example ( and simplified access to ports (less transparent but 10 times faster - see #define FAST_DATA)

11

Threads

286

Posts

1864

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1864
Post time 2016-6-10 19:38:44 | Show all posts
you can use too notro driver for using lcd with framebufer
https://www.youtube.com/watch?v=H7NKQ_STfg0

2

Threads

30

Posts

250

Credits

Intermediate member

Rank: 3Rank: 3

Credits
250
 Author| Post time 2016-6-11 02:52:48 | Show all posts
melanrz
Why download the example you show is through these strange sites ? You can not put on Git?
What it is notro driver ?

11

Threads

286

Posts

1864

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1864
Post time 2016-6-11 06:33:33 | Show all posts
mariuszb replied at 2016-6-11 02:52
melanrz
Why download the example you show is through these strange sites ?  You can not put on Git ...

https://github.com/notro/fbtft

2

Threads

30

Posts

250

Credits

Intermediate member

Rank: 3Rank: 3

Credits
250
 Author| Post time 2016-6-20 17:50:24 | Show all posts
Edited by mariuszb at 2016-6-21 19:54

Now I have connected this display using fbtft


This is done as folows:

  1. sudo modprobe fbtft_device name=flexpfb rotate=180 gpios=dc:110,reset:21,wr:1,cs:6,db00:3,db01:68,db02:71,db03:64,db04:2,db05:65,db06:66,db07:67
  2. sudo modprobe flexfb width=320 height=480 buswidth=8 init=-1,0x11,-2,200,-1,0x36,-1,0x3A,0x05,-1,0x36,0x48,-1,0x13,-1,0x29,-1,0x2C,-3
Copy the Code


and test picture:

  1. sudo fbi -d /dev/fb8 -T 1 -noverbose -a example.jpg
Copy the Code

Video:

  1. sudo apt-get install -y mplayer
  2. sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb8 mplayer -vo sdl -framedrop example.mpg
Copy the Code


Why it is extremaly slow ?  ( 1 frame pre second)
Some hint?



This post contains more resources

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

x

11

Threads

286

Posts

1864

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1864
Post time 2016-6-23 04:47:53 | Show all posts
mariuszb replied at 2016-6-20 17:50
Now I have connected this display using fbtft

add string on modprobe fbtft_device  speed=16000000 ,try diferent speed on spi bus whenb is to high screen make artefacts

13

Threads

77

Posts

444

Credits

Intermediate member

Rank: 3Rank: 3

Credits
444
Post time 2016-6-23 12:44:17 | Show all posts
How do i drive this display with Python.
I am doing a project where i display some data on lcd with python how to drive this display and use custom string Characters on it

2

Threads

30

Posts

250

Credits

Intermediate member

Rank: 3Rank: 3

Credits
250
 Author| Post time 2016-6-23 15:59:54 | Show all posts
melanrz replied at 2016-6-23 04:47
add string on modprobe fbtft_device  speed=16000000 ,try diferent speed on spi bus whenb is to hig ...

This is not SPI device (8 bit paralel) , so speed def is not used
You have to log in before you can reply Login | Register

Points Rules

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

2019-12-11 08:52 GMT+8 , Processed in 0.034389 second(s), 23 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list